Finding Largest Common Substructures of Molecules in Quadratic Time

Conference paper
Part of the Lecture Notes in Computer Science book series (LNCS, volume 10139)

Abstract

Finding the common structural features of two molecules is a fundamental task in cheminformatics. Most drugs are small molecules, which can naturally be interpreted as graphs. Hence, the task is formalized as maximum common subgraph problem. Albeit the vast majority of molecules yields outerplanar graphs this problem remains \(\mathsf{NP}\)-hard.

We consider a variation of the problem of high practical relevance, where the rings of molecules must not be broken, i.e., the block and bridge structure of the input graphs must be retained by the common subgraph. We present an algorithm for finding a maximum common connected induced subgraph of two given outerplanar graphs subject to this constraint. Our approach runs in time \(\mathcal {O}(\varDelta n^2)\) in outerplanar graphs on n vertices with maximum degree \(\varDelta \). This leads to a quadratic time complexity in molecular graphs, which have bounded degree. The experimental comparison on synthetic and real-world datasets shows that our approach is highly efficient in practice and outperforms comparable state-of-the-art algorithms.

References

  1. 1.
    Akutsu, T.: A polynomial time algorithm for finding a largest common subgraph of almost trees of bounded degree. IEICE Trans. Fundam. Electron. Commun. Comput. Sci. E76–A(9), 1488–1493 (1993)Google Scholar
  2. 2.
    Akutsu, T., Tamura, T.: A polynomial-time algorithm for computing the maximum common connected edge subgraph of outerplanar graphs of bounded degree. Algorithms 6(1), 119–135 (2013)MathSciNetCrossRefGoogle Scholar
  3. 3.
    Droschinsky, A., Kriege, N., Mutzel, P.: Faster algorithms for the maximum common subtree isomorphism problem. MFCS 2016. LIPIcs, 58, 34:1–34:14 (2016). arXiv:1602.07210
  4. 4.
    Droschinsky, A., Kriege, N., Mutzel, P.: Finding largest common substructures of molecules in quadratic time (2016). CoRR arXiv:1610.08739
  5. 5.
    Ehrlich, H.C., Rarey, M.: Maximum common subgraph isomorphism algorithms and their applications in molecular science: a review. Wiley Interdiscip. Rev. Comput. Mol. Sci. 1(1), 68–79 (2011)CrossRefGoogle Scholar
  6. 6.
    Garey, M.R., Johnson, D.S.: Computers and Intractability: A Guide to the Theory of NP-Completeness. W.H. Freeman, New York (1979)MATHGoogle Scholar
  7. 7.
    Kriege, N., Kurpicz, F., Mutzel, P.: On maximum common subgraph problems in series-parallel graphs. In: Kratochvíl, J., Miller, M., Froncek, D. (eds.) IWOCA 2014. LNCS, vol. 8986, pp. 200–212. Springer, Heidelberg (2015). doi:10.1007/978-3-319-19315-1_18 CrossRefGoogle Scholar
  8. 8.
    Kriege, N., Mutzel, P.: Finding maximum common biconnected subgraphs in series-parallel graphs. In: Csuhaj-Varjú, E., Dietzfelbinger, M., Ésik, Z. (eds.) MFCS 2014. LNCS, vol. 8635, pp. 505–516. Springer, Heidelberg (2014). doi:10.1007/978-3-662-44465-8_43 Google Scholar
  9. 9.
    Lingas, A.: Subgraph isomorphism for biconnected outerplanar graphs in cubic time. Theor. Comput. Sci. 63(3), 295–302 (1989)MathSciNetCrossRefMATHGoogle Scholar
  10. 10.
    Matula, D.W.: Subtree isomorphism in \(O(n^{5/2})\). In: Alspach, B., P.H., Miller, D. (eds.) Algorithmic Aspects of Combinatorics, Annals of Discrete Mathematics, vol. 2, pp. 91–106. Elsevier (1978)Google Scholar
  11. 11.
    Nicholson, V., Tsai, C.C., Johnson, M., Naim, M.: A subgraph isomorphism theorem for molecular graphs. In: Graph Theory and Topology in Chemistry. Studies in Physical and Theoretical Chemistry, no. 51, pp. 226–230. Elsevier (1987)Google Scholar
  12. 12.
    Raymond, J.W., Willett, P.: Maximum common subgraph isomorphism algorithms for the matching of chemical structures. J. Comput. Aided Mol. Des. 16(7), 521–533 (2002)CrossRefGoogle Scholar
  13. 13.
    Schietgat, L., Ramon, J., Bruynooghe, M.: A polynomial-time maximum common subgraph algorithm for outerplanar graphs and its application to chemoinformatics. Ann. Math. Artif. Intell. 69(4), 343–376 (2013)MathSciNetCrossRefMATHGoogle Scholar
  14. 14.
    Sysło, M.M.: The subgraph isomorphism problem for outerplanar graphs. Theor. Comput. Sci. 17(1), 91–97 (1982)MathSciNetCrossRefMATHGoogle Scholar
  15. 15.
    Yamaguchi, A., Aoki, K.F., Mamitsuka, H.: Finding the maximum common subgraph of a partial \(k\)-tree and a graph with a polynomially bounded number of spanning trees. Inf. Process. Lett. 92(2), 57–63 (2004)MathSciNetCrossRefMATHGoogle Scholar

Copyright information

© Springer International Publishing AG 2017

Authors and Affiliations

  1. 1.Department of Computer ScienceTechnische Universität DortmundDortmundGermany

Personalised recommendations