class TightSim[TLabel] extends GraphMatcher[TLabel]
The 'TightSim' class provides an implementation for tight simulation
graph pattern matching. This version uses DualSim
.
- See also
hipore.com/ijbd/2014/IJBD%20Vol%201%20No%201%202014.pdf
- Alphabetic
- By Inheritance
- TightSim
- GraphMatcher
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
TightSim(g: Graph[TLabel], q: Graph[TLabel], duals: GraphMatcher[TLabel])(implicit arg0: ClassTag[TLabel])
- g
the data graph G(V, E, l)
- q
the query graph Q(U, D, k)
Value Members
-
def
bijections(): Set[Array[Int]]
Apply a graph pattern matching algorithm to find subgraphs of data graph 'g' that isomorphically match query graph 'q'.
Apply a graph pattern matching algorithm to find subgraphs of data graph 'g' that isomorphically match query graph 'q'. These are represented by a set of single-valued bijections {'psi'} where each 'psi' function maps each query graph vertex 'u' to a data graph vertices 'v'.
- Definition Classes
- GraphMatcher
-
def
countMappings(phi: Array[Set[Int]]): Pair
Count the number of mappings between query graph vertices 'u_i' and their sets of data graph vertices {v}, giving the number of distinct vertices and edges.
Count the number of mappings between query graph vertices 'u_i' and their sets of data graph vertices {v}, giving the number of distinct vertices and edges.
- phi
the set-valued mapping function
- Definition Classes
- GraphMatcher
-
def
disjoint(set1: Set[Int], set2: Set[Int]): Boolean
Determine whether two sets are disjoints, i.e., have an empty intersection.
Determine whether two sets are disjoints, i.e., have an empty intersection.
- set1
the first set
- set2
the second set
- Definition Classes
- GraphMatcher
-
def
dualFilter(phi: Array[Set[Int]], ball: Ball[TLabel]): Array[Set[Int]]
Perform dual simulation onto the ball.
Perform dual simulation onto the ball.
- phi
mappings from a query vertex u_q to { graph vertices v_g }
- ball
the Ball B(Graph, Center, Radius)
-
def
feasibleMates(): Array[Set[Int]]
Create an initial array of feasible mappings 'phi' from each query vertex 'u' to the corresponding set of data graph vertices '{v}' whose label matches 'u's.
Create an initial array of feasible mappings 'phi' from each query vertex 'u' to the corresponding set of data graph vertices '{v}' whose label matches 'u's.
- Definition Classes
- GraphMatcher
-
def
feasibleMatesW(): Array[Set[Int]]
Create an initial array of feasible mappings 'phi' from each query vertex 'u' to the corresponding set of data graph vertices '{v}' whose label matches 'u's.
Create an initial array of feasible mappings 'phi' from each query vertex 'u' to the corresponding set of data graph vertices '{v}' whose label matches 'u's. This version handles query graph labels that have wildcards.
- Definition Classes
- GraphMatcher
-
def
filterGraph(phi: Array[Set[Int]]): Graph[TLabel]
Filter the data graph by consider only those vertices and edges which are part of feasible matches after performing initial dual simulation.
Filter the data graph by consider only those vertices and edges which are part of feasible matches after performing initial dual simulation.
- phi
mappings from a query vertex u_q to { graph vertices v_g }
- Definition Classes
- GraphMatcher
-
def
mappings(): Array[Set[Int]]
Apply the Tight Graph Simulation pattern matching algorithm to find the mappings from the query graph 'q' to the data graph 'g'.
Apply the Tight Graph Simulation pattern matching algorithm to find the mappings from the query graph 'q' to the data graph 'g'. These are represented by a multi-valued function 'phi' that maps each query graph vertex 'u' to a set of data graph vertices '{v}'.
- Definition Classes
- TightSim → GraphMatcher
-
def
mappings2(): Map[Int, Array[Set[Int]]]
Return mapping results per ball.
-
def
prune(phi: Array[Set[Int]]): Array[Set[Int]]
The 'prune' is not needed, pruning is delegated to incorporated dual graph simulation algorithm.
The 'prune' is not needed, pruning is delegated to incorporated dual graph simulation algorithm.
- phi
array of mappings from a query vertex u_q to { graph vertices v_g }
- Definition Classes
- TightSim → GraphMatcher
-
def
refine(phi: Array[Set[Int]]): Map[Int, Array[Set[Int]]]
Refine 'phi' using tight simulation to find mappings with balls.
Refine 'phi' using tight simulation to find mappings with balls.
- phi
the initial mapping after applying Dual to the whole graph
-
def
selectivityCriteria(qmet: GraphMetrics[TLabel]): Int
Return the vertex from an array of central vertices, those which have highest 'ch' set size and lowest frequency of label in the query graph, i.e., highest ratio.
-
def
showMappings(phi: Array[Set[Int]]): Unit
Show all mappings between query graph vertices 'u_i' and their sets of data graph vertices {v}.
Show all mappings between query graph vertices 'u_i' and their sets of data graph vertices {v}.
- phi
the set-valued mapping function
- Definition Classes
- GraphMatcher
-
def
test(name: String, ans: Array[Set[Int]] = null): Array[Set[Int]]
Test the Graph Pattern Matcher.