|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
A simple interface for a graph node in a networked space.
| Method Summary | |
void |
addInEdge(Edge edge)
Add an in edge to this node. |
void |
addOutEdge(Edge edge)
Add an out edge to this node. |
void |
clearInEdges()
Clears (removes) all the in edges. |
void |
clearOutEdges()
Clears (removes) all the out edges. |
java.lang.Object |
getId()
Gets the id associated with this node. |
java.util.ArrayList |
getInEdges()
Gets the edges coming into this node. |
java.lang.String |
getNodeLabel()
Gets the label of this node. |
java.util.ArrayList |
getOutEdges()
Gets the edges going out from this node. |
boolean |
hasEdgeFrom(Node node)
Returns true if this DefaultNode has an Edge from the specified Node, otherwise false. |
boolean |
hasEdgeTo(Node node)
Returns true if this DefaultNode has an Edge to the specified Node, otherwise false. |
void |
removeInEdge(Edge edge)
Removes the specified edge from the list of "in" edges. |
void |
removeOutEdge(Edge edge)
Removes the specified edge from the list of "out" edges. |
void |
setNodeLabel(java.lang.String node)
|
| Method Detail |
public java.lang.Object getId()
public java.lang.String getNodeLabel()
public void setNodeLabel(java.lang.String node)
public java.util.ArrayList getInEdges()
public java.util.ArrayList getOutEdges()
public void addInEdge(Edge edge)
public void addOutEdge(Edge edge)
public void removeInEdge(Edge edge)
edge - the edge to removepublic void removeOutEdge(Edge edge)
edge - the edge to removepublic void clearInEdges()
public void clearOutEdges()
public boolean hasEdgeTo(Node node)
public boolean hasEdgeFrom(Node node)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||