Graph Similarity and Approximate Isomorphism

The graph similarity problem, also known as approximate graph isomorphism or graph matching problem, has been extensively studied in the machine learning community, but has not received much attention in the algorithms community: Given two graphs $G,H$ of the same order $n$ with adjacency matrices $A_G,A_H$, a well-studied measure of similarity is the Frobenius distance \[ \mathrm{dist}(G,H):=\min_{\pi}\|A_G^\pi-A_H\|_F, \] where $\pi$ ranges over all permutations of the vertex set of $G$, where $A_G^\pi$ denotes the matrix obtained from $A_G$ by permuting rows and columns according to $\pi$, and where $\|M\|_F$ is the Frobenius norm of a matrix $M$. The (weighted) graph similarity problem, denoted by SIM (WSIM), is the problem of computing this distance for two graphs of same order. This problem is closely related to the notoriously hard quadratic assignment problem (QAP), which is known to be NP-hard even for severely restricted cases. It is known that SIM (WSIM) is NP-hard; we strengthen this hardness result by showing that the problem remains NP-hard even for the class of trees. Identifying the boundary of tractability for WSIM is best done in the framework of linear algebra. We show that WSIM is NP-hard as long as one of the matrices has unbounded rank or negative eigenvalues: hence, the realm of tractability is restricted to positive semi-definite matrices of bounded rank. Our main result is a polynomial time algorithm for the special case where one of the matrices has a bounded clustering number, a parameter arising from spectral graph drawing techniques.

[1]  Mario Vento,et al.  Thirty Years Of Graph Matching In Pattern Recognition , 2004, Int. J. Pattern Recognit. Artif. Intell..

[2]  Daniel Neuen,et al.  Benchmark Graphs for Practical Graph Isomorphism , 2017, ESA 2017.

[3]  A. N. Elshafei,et al.  Hospital Layout as a Quadratic Assignment Problem , 1977 .

[4]  Shinji Umeyama,et al.  An Eigendecomposition Approach to Weighted Graph Matching Problems , 1988, IEEE Trans. Pattern Anal. Mach. Intell..

[5]  David S. Johnson,et al.  Computers and Intractability: A Guide to the Theory of NP-Completeness , 1978 .

[6]  Franz Rendl,et al.  Applications of parametric programming and eigenvalue maximization to the quadratic assignment problem , 1992, Math. Program..

[7]  Maxim Sviridenko,et al.  Maximum Quadratic Assignment Problem: Reduction from Maximum Label Cover and LP-based Approximation Algorithm , 2010, TALG.

[8]  D. Matula Subtree Isomorphism in O(n5/2) , 1978 .

[9]  László Babai,et al.  Graph isomorphism in quasipolynomial time [extended abstract] , 2015, STOC.

[10]  Alan M. Frieze,et al.  A new rounding procedure for the assignment problem with applications to dense graph arrangement problems , 1996, Proceedings of 37th Conference on Foundations of Computer Science.

[11]  Gerhard J. Woeginger,et al.  Well-solvable cases of the QAP with block-structured matrices , 2014, Discret. Appl. Math..

[12]  M. Zaslavskiy,et al.  A Path Following Algorithm for the Graph Matching Problem , 2008, IEEE Transactions on Pattern Analysis and Machine Intelligence.

[13]  Maxim Sviridenko,et al.  On the Maximum Quadratic Assignment Problem , 2009, Math. Oper. Res..

[14]  Ryan O'Donnell,et al.  Hardness of robust graph isomorphism, Lasserre gaps, and asymmetry of random graphs , 2014, SODA.

[15]  Jakob Krarup,et al.  Computer-aided layout design , 1978 .

[16]  Gerhard J. Woeginger,et al.  The quadratic assignment problem with a monotone anti-Monge and a symmetric Toeplitz matrix: Easy and hard cases , 1996, Math. Program..

[17]  Gerhard J. Woeginger,et al.  The Wiener maximum quadratic assignment problem , 2011, Discret. Optim..

[18]  Igor L. Markov,et al.  Conflict Analysis and Branching Heuristics in the Search for Graph Automorphisms , 2013, 2013 IEEE 25th International Conference on Tools with Artificial Intelligence.

[19]  Y. Koren,et al.  Drawing graphs by eigenvectors: theory and practice , 2005 .

[20]  V. Deineko,et al.  The Quadratic Assignment Problem: Theory and Algorithms , 1998 .

[21]  Herbert Edelsbrunner,et al.  Simulation of simplicity: a technique to cope with degenerate cases in geometric algorithms , 1988, SCG '88.

[22]  Brendan D. McKay,et al.  Practical graph isomorphism, II , 2013, J. Symb. Comput..

[23]  Petteri Kaski,et al.  Engineering an Efficient Canonical Labeling Tool for Large and Sparse Graphs , 2007, ALENEX.

[24]  Salih O. Duffuaa,et al.  A Linear Programming Approach for the Weighted Graph Matching Problem , 1993, IEEE Trans. Pattern Anal. Mach. Intell..

[25]  Steven Gold,et al.  A Graduated Assignment Algorithm for Graph Matching , 1996, IEEE Trans. Pattern Anal. Mach. Intell..

[26]  Vikraman Arvind,et al.  Approximate Graph Isomorphism , 2012, MFCS.

[27]  Arthur M. Geoffrion,et al.  Scheduling Parallel Production Lines with Changeover Costs: Practical Application of a Quadratic Assignment/LP Approach , 1976, Oper. Res..

[28]  Erhard Rahm,et al.  Similarity flooding: a versatile graph matching algorithm and its application to schema matching , 2002, Proceedings 18th International Conference on Data Engineering.