Advertisement

Exact Computation of Graph Edit Distance for Uniform and Non-uniform Metric Edit Costs

  • David B. Blumenthal
  • Johann Gamper
Conference paper
Part of the Lecture Notes in Computer Science book series (LNCS, volume 10310)

Abstract

The graph edit distance is a well-established and widely used distance measure for labelled, undirected graphs. However, since its exact computation is \( NP \)-hard, research has mainly focused on devising approximative heuristics and only few exact algorithms have been proposed. The standard approach \(\mathtt {A}^\star \)-\(\mathtt {GED}\), a node-based best-first search that works for both uniform and non-uniform metric edit costs, suffers from huge runtime and memory requirements. Recently, two better performing algorithms have been proposed: \(\mathtt {DF}\)-\(\mathtt {GED}\), a node-based depth-first search that works for uniform and non-uniform metric edit costs, and \(\mathtt {CSI\_GED}\), an edge-based depth-first search that works only for uniform edit costs. Our paper contains two contributions: First, we propose a speed-up \(\mathtt {DF}\)-\(\mathtt {GED^{u}}\) of \(\mathtt {DF}\)-\(\mathtt {GED}\) for uniform edit costs. Second, we develop a generalisation \(\mathtt {CSI\_GED^{nu}}\) of \(\mathtt {CSI\_GED}\) that also covers non-uniform metric edit cost. We empirically evaluate the proposed algorithms. The experiments show, i.a., that our speed-up \(\mathtt {DF}\)-\(\mathtt {GED^{u}}\) clearly outperforms \(\mathtt {DF}\)-\(\mathtt {GED}\) and that our generalisation \(\mathtt {CSI\_GED^{nu}}\) is the most versatile algorithm.

Keywords

Graph matching Graph similarity Graph edit distance Branch and bound 

References

  1. 1.
    Abu-Aisheh, Z., Raveaux, R., Ramel, J.Y., Martineau, P.: An exact graph edit distance algorithm for solving pattern recognition problems. In: Marsico, M.D., Figueiredo, M.A.T., Fred, A.L.N. (eds.) ICPRAM 2015, vol. 1, pp. 271–278. SciTePress, Setúbal (2015)Google Scholar
  2. 2.
    Carletti, V., Gaüzère, B., Brun, L., Vento, M.: Approximate graph edit distance computation combining bipartite matching and exact neighborhood substructure distance. In: Liu, C.-L., Luo, B., Kropatsch, W.G., Cheng, J. (eds.) GbRPR 2015. LNCS, vol. 9069, pp. 188–197. Springer, Cham (2015). doi: 10.1007/978-3-319-18224-7_19 Google Scholar
  3. 3.
    Ferrer, M., Serratosa, F., Riesen, K.: Learning heuristics to reduce the overestimation of bipartite graph edit distance approximation. In: Perner, P. (ed.) MLDM 2015. LNCS (LNAI), vol. 9166, pp. 17–31. Springer, Cham (2015). doi: 10.1007/978-3-319-21024-7_2 CrossRefGoogle Scholar
  4. 4.
    Gaüzère, B., Bougleux, S., Riesen, K., Brun, L.: Approximate graph edit distance guided by bipartite matching of bags of walks. In: Fränti, P., Brown, G., Loog, M., Escolano, F., Pelillo, M. (eds.) S+SSPR 2014. LNCS, vol. 8621, pp. 73–82. Springer, Heidelberg (2014). doi: 10.1007/978-3-662-44415-3_8 Google Scholar
  5. 5.
    Gouda, K., Hassaan, M.: CSI_GED: an efficient approach for graph edit similarity computation. In: ICDE 2016, pp. 265–276. IEEE Computer Society (2016)Google Scholar
  6. 6.
    Justice, D., Hero, A.: A binary linear programming formulation of the graph edit distance. IEEE Trans. Pattern Anal. Mach. Intell. 28(8), 1200–1214 (2006)CrossRefGoogle Scholar
  7. 7.
    Kuhn, H.W.: The hungarian method for the assignment problem. Nav. Res. Logist. Q. 2(1–2), 83–97 (1955)MathSciNetCrossRefzbMATHGoogle Scholar
  8. 8.
    Lerouge, J., Abu-Aisheh, Z., Raveaux, R., Héroux, P., Adam, S.: Exact graph edit distance computation using a binary linear program. In: Robles-Kelly, A., Loog, M., Biggio, B., Escolano, F., Wilson, R. (eds.) S+SSPR 2016. LNCS, vol. 10029, pp. 485–495. Springer, Cham (2016). doi: 10.1007/978-3-319-49055-7_43 CrossRefGoogle Scholar
  9. 9.
    Riesen, K., Bunke, H.: IAM graph database repository for graph based pattern recognition and machine learning. In: da Vitoria Lobo, N., Kasparis, T., Roli, F., Kwok, J.T., Georgiopoulos, M., Anagnostopoulos, G.C., Loog, M. (eds.) S+SSPR 2008. LNCS, vol. 5342, pp. 287–297. Springer, Heidelberg (2008)Google Scholar
  10. 10.
    Riesen, K., Bunke, H.: Approximate graph edit distance computation by means of bipartite graph matching. Image Vis. Comput. 27(7), 950–959 (2009)CrossRefGoogle Scholar
  11. 11.
    Fankhauser, S., Riesen, K., Bunke, H.: Speeding up graph edit distance computation through fast bipartite matching. In: Jiang, X., Ferrer, M., Torsello, A. (eds.) GbRPR 2011. LNCS, vol. 6658, pp. 102–111. Springer, Heidelberg (2011). doi: 10.1007/978-3-642-20844-7_11 CrossRefGoogle Scholar
  12. 12.
    Riesen, K., Fischer, A., Bunke, H.: Computing upper and lower bounds of graph edit distance in cubic time. In: Gayar, N., Schwenker, F., Suen, C. (eds.) ANNPR 2014. LNCS (LNAI), vol. 8774, pp. 129–140. Springer, Cham (2014). doi: 10.1007/978-3-319-11656-3_12 Google Scholar
  13. 13.
    Serratosa, F.: Fast computation of bipartite graph matching. Pattern Recogn. Lett. 45, 244–250 (2014)CrossRefGoogle Scholar
  14. 14.
    Zeng, Z., Tung, A.K.H., Wang, J., Feng, J., Zhou, L.: Comparing stars: on approximating graph edit distance. PVLDB 2(1), 25–36 (2009)Google Scholar
  15. 15.
    Zhao, X., Xiao, C., Lin, X., Wang, W.: Efficient graph similarity joins with edit distance constraints. In: Kementsietsidis, A., Salles, M.A.V. (eds.) ICDE 2012, pp. 834–845. IEEE Computer Society (2012)Google Scholar
  16. 16.
    Zheng, W., Zou, L., Lian, X., Wang, D., Zhao, D.: Graph similarity search with edit distance constraint in large graph databases. In: He, Q., Iyengar, A., Nejdl, W., Pei, J., Rastogi, R. (eds.) CIKM 2013, pp. 1595–1600. ACM (2013)Google Scholar

Copyright information

© Springer International Publishing AG 2017

Authors and Affiliations

  1. 1.Faculty of Computer ScienceFree University of BolzanoBolzanoItaly

Personalised recommendations