public class GraphNode
extends java.lang.Object
| Constructor and Description |
|---|
GraphNode(java.lang.String text,
Graph.Selection selection) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
java.util.List<graph.GraphNode.Value> |
getElements() |
int |
getInDegree() |
int |
getOccurence() |
int |
getOutDegree() |
int |
hashCode() |
void |
isSource(java.lang.String text)
Increments the outDegree of the text +1 if it exists
|
void |
isTarget(java.lang.String text)
Increments the inDegree of the text +1 if it exists
|
void |
merge(GraphNode other)
Merges another graph node into this graph node
|
java.lang.String |
toString() |
boolean |
update(java.lang.String text)
Increments the occurrence of the text +1 if it exists
|
public GraphNode(java.lang.String text,
Graph.Selection selection)
public boolean update(java.lang.String text)
text - public void isSource(java.lang.String text)
text - public void isTarget(java.lang.String text)
text - public int getOccurence()
public int getInDegree()
public int getOutDegree()
public void merge(GraphNode other)
other - Graph Nodepublic java.util.List<graph.GraphNode.Value> getElements()
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object