|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Node
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 |
|---|
java.lang.Object getId()
java.lang.String getNodeLabel()
void setNodeLabel(java.lang.String node)
java.util.ArrayList getInEdges()
java.util.ArrayList getOutEdges()
void addInEdge(Edge edge)
void addOutEdge(Edge edge)
void removeInEdge(Edge edge)
edge - the edge to removevoid removeOutEdge(Edge edge)
edge - the edge to removevoid clearInEdges()
void clearOutEdges()
boolean hasEdgeTo(Node node)
boolean hasEdgeFrom(Node node)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||