Adding regular expressions to graph reachability and pattern queries
Authors:
- 1 April 2011
- conference paper
- Published by Institute of Electrical and Electronics Engineers (IEEE)
- No. 10636382,p. 39-50
Abstract
It is increasingly common to find graphs in which edges bear different types, indicating a variety of relationships. For such graphs we propose a class of reachability queries and a class of graph patterns, in which an edge is specified with a regular expression of a certain form, expressing the connectivity in a data graph via edges of various types. In addition, we define graph pattern matching based on a revised notion of graph simulation. On graphs in emerging applications such as social networks, we show that these queries are capable of finding more sensible information than their traditional counterparts. Better still, their increased expressive power does not come with extra complexity. Indeed, (1) we investigate their containment and minimization problems, and show that these fundamental problems are in quadratic time for reachability queries and are in cubic time for pattern queries. (2) We develop an algorithm for answering reachability queries, in quadratic time as for their traditional counterpart. (3) We provide two cubic-time algorithms for evaluating graph pattern queries based on extended graph simulation, as opposed to the NP-completeness of graph pattern matching via subgraph isomorphism. (4) The effectiveness, efficiency and scalability of these algorithms are experimentally verified using real-life data and synthetic data.Keywords
This publication has 26 references indexed in Scilit:
- Information preserving XML schema embeddingACM Transactions on Database Systems, 2008
- Simulation-based minimizationACM Transactions on Computational Logic, 2003
- Reachability and Distance Queries via 2-Hop LabelsSIAM Journal on Computing, 2003
- Birds of a Feather: Homophily in Social NetworksAnnual Review of Sociology, 2001
- Finding replicated Web collectionsACM SIGMOD Record, 2000
- UnQL: a query language and algebra for semistructured data based on structural recursionThe VLDB Journal, 2000
- The Lorel query language for semistructured dataInternational Journal on Digital Libraries, 1997
- Minimal NFA Problems are HardSIAM Journal on Computing, 1993
- An Algorithm for Subgraph IsomorphismJournal of the ACM, 1976
- Depth-First Search and Linear Graph AlgorithmsSIAM Journal on Computing, 1972