public class Graph
extends java.lang.Object
Node's and Relationship's.
Note that this is not a directed graph and cannot be walked. Rather it is expected that Nodes and Relationships are normalised from the Neo4J format to the user's desired data structure.
| Constructor and Description |
|---|
Graph(java.util.Set<Node> nodes,
java.util.Set<Relationship> relationships)
Creates a new Graph.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.Set<Node> |
getNodes()
Retrieves an iterable collection of
Node's. |
java.util.Set<Relationship> |
getRelationships()
Retrieves an iterable collection of
Relationship's that connect the nodes in this graph. |
public Graph(java.util.Set<Node> nodes, java.util.Set<Relationship> relationships)
Note: Because this api's default implementation is known there is no safe constructor copying.
nodes - The set of Nodes in this graph.relationships - The set of Relationships in this Graph.public java.util.Set<Node> getNodes()
Node's.public java.util.Set<Relationship> getRelationships()
Relationship's that connect the nodes in this graph.