public class Graph extends Object implements Serializable
NodeType, name, qualified name and description.
A node may be in one or more projects.
Nodes can be connected with Relationships to form graphs. As they may be visualised, so a node has an associated
icon.
| Constructor and Description |
|---|
Graph() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
String |
getNodeFilter()
Get the node type filters as a comma separated string
|
Map<String,Node> |
getNodes()
Get the nodes that are in the neighbourhood of the root node
|
String |
getRelationshipFilter()
Get the relationship type filters as a comma separated string
|
Map<String,Relationship> |
getRelationships()
Get the relationships that are in the neighbourhood of the root node
|
String |
getRootNodeGuid() |
int |
hashCode() |
void |
setNodeFilter(String nodeFilter)
Set the node type filters as a comma separated string
|
void |
setNodes(Map<String,Node> nodes)
Set the nodes that are in the neighbourhood of the root node
|
void |
setRelationshipFilter(String relationshipFilter)
Set the relationship type filters as a comma separated string
|
void |
setRelationships(Map<String,Relationship> relationships)
Set the relationships that are in the neighbourhood of the root node
|
void |
setRootNodeGuid(String rootNodeGuid)
the root node's guid.
|
String |
toString() |
String |
toString(StringBuilder sb) |
public Map<String,Node> getNodes()
public void setNodes(Map<String,Node> nodes)
nodes - supply the nodes associated with the root nodepublic Map<String,Relationship> getRelationships()
public void setRelationships(Map<String,Relationship> relationships)
relationships - supply the nodes associated with the root nodepublic String getRootNodeGuid()
public void setRootNodeGuid(String rootNodeGuid)
rootNodeGuid - the guid of the root nodepublic String getNodeFilter()
public void setNodeFilter(String nodeFilter)
nodeFilter - the node type filterspublic String getRelationshipFilter()
public void setRelationshipFilter(String relationshipFilter)
relationshipFilter - the node type filterspublic String toString(StringBuilder sb)
Copyright © 2018–2021 LF AI & Data Foundation. All rights reserved.