{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,11,14]],"date-time":"2026-11-14T08:03:57Z","timestamp":1794643437802,"version":"4.9.1"},"reference-count":24,"publisher":"Society for Industrial & Applied Mathematics (SIAM)","issue":"6","content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":["SIAM J. Comput."],"published-print":{"date-parts":[[1995,12]]},"abstract":"<jats:p>We consider the following problem: given a labelled directed graph G and a regular expression R, find all pairs of nodes connected by a simple path such that the concatenation of the labels along the path satisfies R. The problem is motivated by the observation that many recursive queries in relational databases can be expressed in this form, and by the implementation of a query language, $\\textbf{G}^{+}$, based on this observation. We show that the problem is in general intractable, but present an algorithm than runs in polynomial time in the size of the graph when the regular expression and the graph are free of conflicts. We also present a class of languages whose expressions can always be evaluated in time polynomial in the size of both the graph and the expression, and characterize syntactically the expressions for such languages.<\/jats:p>","DOI":"10.1137\/s009753979122370x","type":"journal-article","created":{"date-parts":[[2005,2,24]],"date-time":"2005-02-24T06:42:53Z","timestamp":1109227373000},"page":"1235-1258","source":"Crossref","is-referenced-by-count":260,"title":["Finding Regular Simple Paths in Graph Databases"],"prefix":"10.1137","volume":"24","author":[{"given":"Alberto O.","family":"Mendelzon","sequence":"first","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Peter T.","family":"Wood","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"351","published-online":{"date-parts":[[2006,7,13]]},"reference":[{"key":"R1","doi-asserted-by":"crossref","unstructured":"R. Agrawal,  Alpha: An extension of relational algebra to express a class of recursive queries,  Proceedings of the 3rd International Conference on Data Engineering, New York, IEEE, Piscataway, NJ,  1987,  580\u2013590","DOI":"10.1109\/ICDE.1987.7272427"},{"key":"R2","volume-title":"The design and analysis of computer algorithms","author":"Aho A.","year":"1975"},{"key":"R3","doi-asserted-by":"publisher","DOI":"10.1145\/567752.567763"},{"key":"R4","doi-asserted-by":"publisher","DOI":"10.1007\/3-540-08921-7_60"},{"key":"R5","unstructured":"A. Buchsbaum, P. Kanellakis, J. Vitter,  A data structure for arc insertion and regular path finding,  Proceedings of the 1st ACM-SIAM Symposium on Discrete Algorithms,  1990,  22\u201331 0800.68603"},{"key":"R6","volume-title":"Graphs and networks","author":"Carr\u00e9 Bernard","year":"1979"},{"key":"R7","first-page":"65","volume-title":"Data Base Systems","author":"Codd E.","year":"1972"},{"key":"R8","doi-asserted-by":"crossref","unstructured":"M. Consens, A. Mendelzon,  Graphlog: A visual formalism for real life recursion,  Proceedings of the 9th ACM SIGACT SIGMOD-SIGART Symposium on Principles of Database Systems, Nashville, TN, Apr. 2-4, Association for Computing Machinery, New York,  1990,  404\u2013416","DOI":"10.1145\/298514.298591"},{"key":"R9","doi-asserted-by":"crossref","unstructured":"I. Cruz, A. Mendelzon, P. Wood,  A graphical query language supporting recursion,  Proceedings of the ACM SIGMOD Conference on Management of Data, San Francisco, CA, May 27\u201329, Association for Computing Machinery, New York,  1987,  323\u2013330","DOI":"10.1145\/38713.38749"},{"key":"R10","unstructured":"I. Cruz, A. Mendelzon, P. Wood,  G+: Recursive queries without recursion,  Proceedings of the 2nd International Conference on Expert Database Systems, Tysons Corner, VA, Apr. 25-27, Benjamin\/Cummings, Redwood City, CA,  1988,  355\u2013368"},{"key":"R11","doi-asserted-by":"publisher","DOI":"10.1016\/0304-3975(80)90009-2"},{"key":"R12","doi-asserted-by":"crossref","unstructured":"G. Grahne, S. Sippu, E. Soisalon-Soininen,  Efficient evaluation for a subset of recursive queries,  Proceedings of the 6th ACM SIGACTSIGMOD-SIGART Symposium on Principles of Database Systems, San Diego, CA, Mar. 23-25, Association for Computing Machinery, New York,  1987,  284\u2013293","DOI":"10.1145\/28659.28690"},{"key":"R13","volume-title":"Introduction to automata theory, languages, and computation","author":"Hopcroft J.","year":"1979"},{"key":"R14","doi-asserted-by":"publisher","DOI":"10.1016\/S0022-0000(76)80038-4"},{"key":"R15","unstructured":"Y. Ioannidis, R. Ramakrishnan,  Efficient transitive closure algorithms,  Proceedings of the 14th International Conference on Very Large Data Bases, Los Angeles, CA, Aug. 29-Sept., Vol. 1, Morgan Kaufmann, Palo Alto,  1988,  382\u2013394"},{"key":"R16","doi-asserted-by":"publisher","DOI":"10.1016\/0020-0190(86)90021-9"},{"key":"R17","doi-asserted-by":"publisher","DOI":"10.1002\/net.3230140403"},{"key":"R18","unstructured":"A. Mendelzon, P. Wood,  Finding regular simple paths in graph databases,  Proceedings of the 15th International Conference on Very Large Data Bases, Amsterdam, The Netherlands, Aug. 22-25, Morgan Kaufmann, Palo Alto, CA,  1989,  185\u2013193"},{"key":"R19","doi-asserted-by":"crossref","unstructured":"A. Rosenthal, S. Heiler, U. Dayal, F. Manola,  Traversal recursion: A practical approach to supporting recursive applications,  Proceedings of the ACM SIGMOD Conference on Management of Data, Washington, DC, May 28-30, Association for Computing Machinery, New York,  1986,  166\u2013176","DOI":"10.1145\/16894.16871"},{"key":"R20","doi-asserted-by":"publisher","DOI":"10.1145\/322203.322207"},{"key":"R21","doi-asserted-by":"crossref","unstructured":"L. Stockmeyer, A. Meyer,  Word problems requiring exponential time: preliminary report,  Fifth Annual ACM Symposium on Theory of Computing (Austin, Tex., 1973), Assoc. Comput. Mach., New York,  1973,  1\u20139 54:65570359.68050","DOI":"10.1145\/800125.804029"},{"key":"R22","doi-asserted-by":"publisher","DOI":"10.1145\/322261.322273"},{"key":"R23","doi-asserted-by":"publisher","DOI":"10.1145\/3979.3980"},{"key":"R24","doi-asserted-by":"crossref","unstructured":"M. Yannakakis,  Graph-theoretic methods in database theory,  Proceedings of the 9th ACM SIGACT SIGMOD-SIGART Symposium on Principles of Database Systems, Nashville, TN, Apr. 2-4, Association for Computing Machinery, New York,  1990,  230\u2013242","DOI":"10.1145\/298514.298576"}],"container-title":["SIAM Journal on Computing"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/epubs.siam.org\/doi\/pdf\/10.1137\/S009753979122370X","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2026,8,21]],"date-time":"2026-08-21T18:50:42Z","timestamp":1787338242000},"score":1,"resource":{"primary":{"URL":"https:\/\/epubs.siam.org\/doi\/10.1137\/S009753979122370X"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[1995,12]]},"references-count":24,"journal-issue":{"issue":"6","published-print":{"date-parts":[[1995,12]]}},"alternative-id":["10.1137\/S009753979122370X"],"URL":"https:\/\/doi.org\/10.1137\/s009753979122370x","relation":{},"ISSN":["0097-5397","1095-7111"],"issn-type":[{"value":"0097-5397","type":"print"},{"value":"1095-7111","type":"electronic"}],"subject":[],"published":{"date-parts":[[1995,12]]}}}