Skip to content
BY-NC-ND 4.0 license Open Access Published by De Gruyter October 18, 2016

Subgraph Queries by Context-free Grammars

  • Petteri Sevon EMAIL logo and Lauri Eronen

Summary

We describe a method for querying vertex- and edge-labeled graphs using context-free grammars to specify the class of interesting paths. We introduce a novel problem, finding the connection subgraph induced by the set of matching paths between given two vertices or two sets of vertices. Such a subgraph provides a concise summary of the relationship between the vertices. We also present novel algorithms for parsing subgraphs directly without enumerating all the individual paths. We evaluate experimentally the presented parsing algorithms on a set of real graphs derived from publicly available biomedical databases and on randomly generated graphs. The results indicate that parsing the connection subgraph directly is much more effective than parsing individual paths separately. Furthermore, we show that using a bidirectional parsing algorithm, in most cases, allows for searching twice as long paths as using a unidirectional search strategy.

Published Online: 2016-10-18
Published in Print: 2008-6-1

© 2008 The Author(s). Published by Journal of Integrative Bioinformatics.

This work is licensed under the Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 License.

Downloaded on 28.3.2024 from https://www.degruyter.com/document/doi/10.1515/jib-2008-100/html
Scroll to top button