Graph edit distance as a quadratic assignment problem