Frontiers of Computer Science

, Volume 6, Issue 3, pp 313–338

Adding regular expressions to graph reachability and pattern queries

  • Wenfei Fan
  • Jianzhong Li
  • Shuai Ma
  • Nan Tang
  • Yinghui Wu
Research Article

DOI: 10.1007/s11704-012-1312-y

Cite this article as:
Fan, W., Li, J., Ma, S. et al. Front. Comput. Sci. (2012) 6: 313. doi:10.1007/s11704-012-1312-y
  • 128 Downloads

Abstract

It is increasingly common to find graphs in which edges are of 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 of 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, as opposed to the NP-completeness of graph pattern matching via subgraph isomorphism. (4) The effectiveness and efficiency of these algorithms are experimentally verified using real-life data and synthetic data.

Keywords

graph reachability graph pattern queries regular expressions containment equivalence minimization 

Copyright information

© Higher Education Press and Springer-Verlag Berlin Heidelberg 2012

Authors and Affiliations

  • Wenfei Fan
    • 1
    • 2
  • Jianzhong Li
    • 2
  • Shuai Ma
    • 3
  • Nan Tang
    • 4
  • Yinghui Wu
    • 1
  1. 1.School of InformaticsUniversity of EdinburghEdinburghUK
  2. 2.Department of Computer Science and EngineeringHarbin Institute of TechnologyHarbinChina
  3. 3.NLSDE LabBeihang UniversityBeijing100919China
  4. 4.Qatar Computing Research InstituteQatar FoundationDohaQatar

Personalised recommendations