# Finding regular simple paths in graph databases

Mendelzon, A.O. and Wood, Peter
(1989)
Finding regular simple paths in graph databases.
In:
Apers, P.M.G. and Wiederhold, G. (eds.)
*Proceedings of the Fifteenth International Conference on Very Large Data Bases.*
Morgan Kaufmann, pp. 185-193.
ISBN 9781558601017.

## Abstract

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 can be expressed in this form, and by the implementation of a query language, 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 database and the expression, and characterize syntactically the expressions for such languages.

## Metadata

Item Type: | Book Section |
---|---|

School: | School of Business, Economics & Informatics > Computer Science and Information Systems |

Depositing User: | Sarah Hall |

Date Deposited: | 25 Oct 2021 14:59 |

Last Modified: | 25 Oct 2021 14:59 |

URI: | https://eprints.bbk.ac.uk/id/eprint/46467 |

## Statistics

Additional statistics are available via IRStats2.