scalation.database.graph_pm
Members list
Type members
Classlikes
The DualIso class provides an implementation for Subgraph Isomorphism that uses Dual Graph Simulation for pruning.
The DualIso class provides an implementation for Subgraph Isomorphism that uses Dual Graph Simulation for pruning.
Value parameters
- g
-
the data graph G(V, E, l)
- q
-
the query graph Q(U, D, k)
Attributes
- Supertypes
The DualSim class provides an implementation for Dual Graph Simulation. It differs from other algorithms by not using inverse adjacency sets (pa) in order to save space.
The DualSim class provides an implementation for Dual Graph Simulation. It differs from other algorithms by not using inverse adjacency sets (pa) in order to save space.
Value parameters
- g
-
the data graph G(V, E, l)
- q
-
the query graph Q(U, D, k)
Attributes
- Supertypes
The ExampleGraphD object contains example query and data digraphs in which the vertex label type is Double.
The ExampleGraphD object contains example query and data digraphs in which the vertex label type is Double.
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
ExampleGraphD.type
The ExampleGraphS object contains example query and data digraphs in which the vertex label type is String.
The ExampleGraphS object contains example query and data digraphs in which the vertex label type is String.
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
ExampleGraphS.type
Value parameters
- ch
-
the array of child (adjacency) vertex sets (outgoing edges)
- elabel
-
the map of edge labels: (u, v) -> edge label
- inverse
-
whether to store inverse adjacency sets (parents)
- label
-
the array of vertex labels: v -> vertex label
- name
-
the name of the digraph
- schema
-
optional schema: map from label to label type
Attributes
- Companion
- object
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait Cloneableclass Objecttrait Matchableclass AnyShow all
Value parameters
- ch
-
the array of child (adjacency) vertex sets (outgoing edges)
- inverse
-
whether to store inverse adjacency sets (parents)
- label
-
the array of vertex labels: v -> vertex label
- name
-
the name of the digraph
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait Cloneableclass Objecttrait Matchableclass AnyShow all
The GraphDFS performs Depth First Search (DFS) or Breadth First Search (BFS) on a Directed Graph. The class currently supports three predicates: (1) to find a matching label, and (2) to see if a destination vertex is reachable.
The GraphDFS performs Depth First Search (DFS) or Breadth First Search (BFS) on a Directed Graph. The class currently supports three predicates: (1) to find a matching label, and (2) to see if a destination vertex is reachable.
Value parameters
- bfs
-
switch from DFS to BFS, if bfs flag is true (defaults to false)
- g
-
the directed graph to search
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
The GraphGen class is used to build random graph with various characteristics. Needs to generate vertex labels of various types including Int, Double, String based on the type.
The GraphGen class is used to build random graph with various characteristics. Needs to generate vertex labels of various types including Int, Double, String based on the type.
Value parameters
- stream
-
the random number stream to use (0 to 999)
- typeSelector
-
the variable for type matches (work around for generic erasure)
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
The GraphIO class is used to write digraphs to a file.
The GraphIO class is used to write digraphs to a file.
Value parameters
- g
-
the digraph to write
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
The GraphIO object is the companion object to the GraphIO class and is used for reading graphs from files or graph databases.
The GraphMatcher trait serves as a template for implementing specific algorithms for graph pattern matching.
The GraphMatcher trait serves as a template for implementing specific algorithms for graph pattern matching.
Value parameters
- g
-
the data graph G(V, E, l) with vertices v in V
- q
-
the query graph Q(U, D, k) with vertices u in U
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
The GraphMetrics class provides methods for determining graph metrics that can be efficiently computed using Breadth-First Search (BFS). This works for undirected graphs. If a directed graph is passed in, it will be converted to a corresponding undirected graph.
The GraphMetrics class provides methods for determining graph metrics that can be efficiently computed using Breadth-First Search (BFS). This works for undirected graphs. If a directed graph is passed in, it will be converted to a corresponding undirected graph.
Value parameters
- g
-
the graph whose metrics are sought
- isUndirected
-
indicates whether the graph is undirected
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
The GraphMetrics companion object provides basic statistics about graphs.
The GraphMetrics companion object provides basic statistics about graphs.
Attributes
- Companion
- class
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
GraphMetrics.type
The GraphSim class provides an implementation for Simple Graph Simulation. For each vertex in a query graph q, it returns all matching vertices in the data graph g with the same vertex label and matching children.
The GraphSim class provides an implementation for Simple Graph Simulation. For each vertex in a query graph q, it returns all matching vertices in the data graph g with the same vertex label and matching children.
Value parameters
- g
-
the data graph G(V, E, l)
- q
-
the query graph Q(U, D, k)
Attributes
- See also
- Supertypes
The MatchAnswers object contains answers for the graph matching problem given in the following paper: John A. Miller, Lakshmish Ramaswamy, Arash J.Z. Fard and Krys J. Kochut, "Research Directions in Big Data Graph Analytics," Proceedings of the 4th IEEE International Congress on Big Data (ICBD'15), New York, New York (June-July 2015) pp. 785-794. FIX: merge with Answers.
The MatchAnswers object contains answers for the graph matching problem given in the following paper: John A. Miller, Lakshmish Ramaswamy, Arash J.Z. Fard and Krys J. Kochut, "Research Directions in Big Data Graph Analytics," Proceedings of the 4th IEEE International Congress on Big Data (ICBD'15), New York, New York (June-July 2015) pp. 785-794. FIX: merge with Answers.
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
MatchAnswers.type
To extend to multi-digraphs, each multi-edge between a pair vertices has it own edge weight. Take the minimum when forming the corresponding matrix.
The ShortestPath class is used to solve shortest path problems for graphs stored in matrices. It solves the Single-Source Shortest Path (SSSP) problem for directed graphs. The ShortestPath companion object is used to form a matrix from a Graph.
The edge cost/distance (must be non-negative) is stored in a dense matrix. Dijkstra's Algorithm is used: @see en.wikipedia.org/wiki/Dijkstra%27s_algorithm
To extend to multi-digraphs, each multi-edge between a pair vertices has it own edge weight. Take the minimum when forming the corresponding matrix.
Value parameters
- c
-
the cost/distance matrix, where a value of zero implies no connection. If the actual distance is zero, use a very small number instead.
- s
-
the single-source vertex
Attributes
- See also
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
The ShortestPath companion object provides factory methods for the ShortestPath class.
The ShortestPath companion object provides factory methods for the ShortestPath class.
Attributes
- Companion
- class
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
ShortestPath.type
The TopSort object provides the topSort method for creating a topological sort of the vertices in a directed graph. It also perform cycle detection.
The TopSort object provides the topSort method for creating a topological sort of the vertices in a directed graph. It also perform cycle detection.
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
TopSort.type
The TrafficLight object is an enumeration type for traffic light colors. Vertices are marked Green (unvisited), Yellow (processing), or Red (done with).
The TrafficLight object is an enumeration type for traffic light colors. Vertices are marked Green (unvisited), Yellow (processing), or Red (done with).
Attributes
- Supertypes
-
trait Enumtrait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
Value members
Concrete methods
The dualIsoTest main function is used to test the DualIso class.
The dualIsoTest main function is used to test the DualIso class.
runMain scalation.database.graph_pm.dualIsoTest
Attributes
The dualIsoTest2 main function is used to test the DualIso class.
The dualIsoTest2 main function is used to test the DualIso class.
runMain scalation.database.graph_pm.dualIsoTest2
Attributes
The dualIsoTest3 main function is used to test the DualIso class.
The dualIsoTest3 main function is used to test the DualIso class.
runMain scalation.database.graph_pm.dualIsoTest3
Attributes
The dualSimTest main function is used to test the DualSim class.
The dualSimTest main function is used to test the DualSim class.
runMain scalation.database.graph_pm.dualSimTest
Attributes
The dualSimTest2 main function is used to test the DualSim class.
The dualSimTest2 main function is used to test the DualSim class.
runMain scalation.database.graph_pm.dualSimTest2
Attributes
The dualSimTest3 main function is used to test the DualSim class.
The dualSimTest3 main function is used to test the DualSim class.
runMain scalation.database.graph_pm.dualSimTest3
Attributes
The graphDFSTest main function is used to test the GraphDFS class.
The graphDFSTest main function is used to test the GraphDFS class.
runMain scalation.database.graph_pm.graphDFSTest
Attributes
The graphGenTest main function is used to test the GraphGen class for building random graphs where a vertex's degree is uniformly distributed. This work build graphs with Int vertex/edge labels.
The graphGenTest main function is used to test the GraphGen class for building random graphs where a vertex's degree is uniformly distributed. This work build graphs with Int vertex/edge labels.
runMain scalation.database.graph_pm.graphGenTest
Attributes
The graphGenTest2 main function is used to test the GraphGen class for building random graphs where a vertex's degree is uniformly distributed. This work build graphs with Double vertex/edge labels.
The graphGenTest2 main function is used to test the GraphGen class for building random graphs where a vertex's degree is uniformly distributed. This work build graphs with Double vertex/edge labels.
runMain scalation.database.graph_pm.graphGenTest2
Attributes
The graphGenTest3 main function is used to test the GraphGen class for building random graphs where a vertex's degree is uniformly distributed. This work build graphs with String vertex/edge labels.
The graphGenTest3 main function is used to test the GraphGen class for building random graphs where a vertex's degree is uniformly distributed. This work build graphs with String vertex/edge labels.
runMain scalation.database.graph_pm.graphGenTest3
Attributes
The graphGenTest4 main function is used to test the GraphGen class for building power law graphs.
The graphGenTest4 main function is used to test the GraphGen class for building power law graphs.
runMain scalation.database.graph_pm.graphGenTest4
Attributes
The graphGenTest5 main function is used to test the GraphGen class for extracting query graphs from data graphs (note: data graph should be connected).
The graphGenTest5 main function is used to test the GraphGen class for extracting query graphs from data graphs (note: data graph should be connected).
runMain scalation.database.graph_pm.graphGenTest5
Attributes
The graphGenTest6 main function is used to test the GraphGen companion object for generating both data and query graphs.
The graphGenTest6 main function is used to test the GraphGen companion object for generating both data and query graphs.
runMain scalation.database.graph_pm.graphGenTest6
Attributes
The graphGenTest7 main function is used to test the GraphGen companion object for generating data graphs.
The graphGenTest7 main function is used to test the GraphGen companion object for generating data graphs.
runMain scalation.database.graph_pm.graphGenTest7
Attributes
The graphGenTest8 main function is used to test the GraphGen companion object for generating both data and query graphs.
The graphGenTest8 main function is used to test the GraphGen companion object for generating both data and query graphs.
runMain scalation.database.graph_pm.graphGenTest8
Attributes
The graphIOTest main function is used to test the GraphIO class and object.
The graphIOTest main function is used to test the GraphIO class and object.
runMain scalation.database.graph_pm.graphIOTest
Attributes
The graphMetricsTest main function is used to test the GraphMetrics class.
The graphMetricsTest main function is used to test the GraphMetrics class.
Attributes
- See also
-
http://math.stackexchange.com/questions/240556/radius-diameter-and-center-of-graph
runMain scalation.database.graph_pm.graphMetricsTest
The graphSimTest main function is used to test the GraphSim class.
The graphSimTest main function is used to test the GraphSim class.
runMain scalation.database.graph_pm.graphSimTest
Attributes
The graphSimTest2 main function is used to test the GraphSim class.
The graphSimTest2 main function is used to test the GraphSim class.
runMain scalation.database.graph_pm.graphSimTest2
Attributes
The graphSimTest3 main function is used to test the GraphSim class.
The graphSimTest3 main function is used to test the GraphSim class.
runMain scalation.database.graph_pm.graphSimTest3
Attributes
The graphSimTest4 main function is used to test the GraphSim class.
The graphSimTest4 main function is used to test the GraphSim class.
runMain scalation.database.graph_pm.graphSimTest4
Attributes
The graphTest main function tests the Graph class using examples from the ExampleGraphD object, which contains digraphs whose vertex and edge labels are of type Double.
The graphTest main function tests the Graph class using examples from the ExampleGraphD object, which contains digraphs whose vertex and edge labels are of type Double.
runMain scalation.database.graph_pm.graphTest
Attributes
The graphTest2 main function tests the Graph class using examples from the ExampleGraphD object, which contains digraphs whose vertex and edge labels are of type String.
The graphTest2 main function tests the Graph class using examples from the ExampleGraphD object, which contains digraphs whose vertex and edge labels are of type String.
runMain scalation.database.graph_pm.graphTest2
Attributes
The graphTest4 main function tests the Graph class by building a graph from an adjacency matrix called cmi for Conditional Mutual Information.
The graphTest4 main function tests the Graph class by building a graph from an adjacency matrix called cmi for Conditional Mutual Information.
Attributes
- See also
-
scalation.modeling.classifying.BayesClassifier
runMain scalation.database.graph_pm.graphTest4
The matchAnswersTest main function is used to test the MatchAnswers object.
The matchAnswersTest main function is used to test the MatchAnswers object.
runMain scalation.database.graph_pm.matchAnswersTest
Attributes
The shortestPathTest main function is used to test the ShortestPath class. Input is in the form of matrices (MatrixD).
The shortestPathTest main function is used to test the ShortestPath class. Input is in the form of matrices (MatrixD).
runMain scalation.database.graph_pm.ShortestPathTest
Attributes
The shortestPathTest2 main function is used to test the ShortestPath class. Input is in the form of graphs (Graph).
The shortestPathTest2 main function is used to test the ShortestPath class. Input is in the form of graphs (Graph).
Attributes
- See also
-
http://thescipub.com/PDF/jcssp.2013.377.382.pdf (Fig. 1)
runMain scalation.database.graph_pm.shortestPathTest2
The topSortTest main method tests the TopSort object using a directed graph. Graphs are created by passing in an array of adjacency sets (one for each vertex).
The topSortTest main method tests the TopSort object using a directed graph. Graphs are created by passing in an array of adjacency sets (one for each vertex).
runMain scalation.database.graph_pm.topSortTest