PAPER DISCUSSION: Adding Regular Expressions to Graph Reachability and Pattern Queries
Xilun Wu Purdue University
PAPER DISCUSSION: Adding Regular Expressions to Graph Reachability - - PowerPoint PPT Presentation
PAPER DISCUSSION: Adding Regular Expressions to Graph Reachability and Pattern Queries Xilun Wu Purdue University Contribution Describe reachability queries and graph pattern queries in a subset of Regular Expression . (Tractable) Define
Xilun Wu Purdue University
multiple edge types (fa, fn, sa, sn) indicating various relationships
Q1: find all biologists (nodes C) who support “cloning”, along with those doctors (nodes B) who are friends-nemeses (via fn) of some users supported by C within 2 hops (via fa≤2). Q2: 1. “Alice”s friends-nemeses (via fn) who are doctors, and are against “cloning”. 2. biologists who support “cloning research”, and are connected within 2 hops to someone via fa relationships who is within 2 hops to person D via sa 3. a scientist group with friends all sharing the same view towards cloning 4. these biologists are against those doctor friends of Alice, and vice versa, via paths of certain patterns
1 2 3 4
Identify connectivity via a path: (a) with edges of particular types and patterns, and (b) with a bound on its length (hops).
These hinder the usability in emerging applications, e.g., social networks Keep exact structure topology between Q and Gs May return exponential many matched subgraphs Decision problem is NP-complete In certain scenarios, too restrictive to find matches
– for each node u in Q, u and f(u) have the same label – An edge (u, u‘) in Q if and only if (f(u), f(u')) is an edge in Gs
binary relation R ⊆ Vq × V is said to be a match if
– (1) for each (u, v) ∈ R, u and v have the same label; and – (2) for each edge (u, u′) ∈ Eq, there exists an edge (v, v′) in E such that (u′, v′) ∈ R.
exists a total match relation M
– for each u ∈ Vq, there exists v ∈ V such that (u, v) ∈ M.
Subgraph isomorphism (NP-complete) vs. graph simulation (O(n2))! Quadratic time solvable
Return a single unique matched subgraph
Lose structure topology (how much? open question)
Subgraph Isomorphism is too strict for emerging applications!
Set up a team to develop a new software product Graph simulation returns F3, F4 and F5; Subgraph isomorphism returns empty!
Connected pattern graphs match disconnected subgraphs Cyclic pattern graphs match tree subgraphs
Q Gs
Q Gs
These motivate us to propose a new matching model!
Xilun Wu Purdue University
more than k edges.
1. 2. 3.
Mk Mk[v1][v2][c] O((m + 1)|V|2 + |V|(|V| + |E|)) (_, _) ∼ O(|V|2) (v1, _) or (_, v2) ∼ O(|V|) (v1, v2) ∼ O(1)
becomes empty.
1. 2. 3.
(_, _) ∼ O(|V|2(|V| + |E|)) (v1, _) or (_, v2) ∼ O(|V|(|V| + |E|)) (v1, v2) ∼ O(|V| + |E|)
2.
1. 2. 3.
(_, _) ∼ O(|V|2) (v1, _) or (_, v2) ∼ O(|V|) (v1, v2) ∼ O(1)
2.
1. 2. 3.
(_, _) ∼ O(|V|2(|V| + |E|)) (v1, _) or (_, v2) ∼ O(|V|(|V| + |E|)) (v1, v2) ∼ O(|V| + |E|)