public class GraphModel extends Object
| Constructor and Description |
|---|
GraphModel() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsNodeWithId(Long nodeId)
Determines whether or not this
GraphModel contains a NodeModel that matches the specified ID. |
boolean |
containsRelationshipWithId(Long relId) |
Set<NodeModel> |
getNodes() |
Set<RelationshipModel> |
getRelationships() |
NodeModel |
node(Long nodeId) |
void |
setNodes(NodeModel[] nodes) |
void |
setRelationships(RelationshipModel[] relationships) |
public void setNodes(NodeModel[] nodes)
public Set<RelationshipModel> getRelationships()
public void setRelationships(RelationshipModel[] relationships)
public boolean containsNodeWithId(Long nodeId)
GraphModel contains a NodeModel that matches the specified ID.nodeId - The graph node ID to match against a NodeModeltrue if this GraphModel contains a node identified by the given argument, false
if it doesn'tpublic boolean containsRelationshipWithId(Long relId)
Copyright © 2015 Neo Technology, Inc.. All rights reserved.