|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--de.rwth.graph.Graph.Node.Edge
Represents edges starting or ending in this node.
Field Summary | |
protected Graph.Node |
endNode
The end node of this edge. |
protected java.lang.Object |
label
The label of this edge. |
protected Graph.Node |
startNode
The start node of this edge. |
Constructor Summary | |
Graph.Node.Edge(Graph.Node endNode)
Creates a new edge without label staring at this node. |
|
Graph.Node.Edge(Graph.Node endNode,
java.lang.Object label)
Creates a new edge with label starting at this node. |
Method Summary | |
Graph.Node |
getEnd()
Gets the ending Node of this edge. |
java.lang.Object |
getLabel()
Gets the label of this edge. |
Graph.Node |
getStart()
Gets the starting Node of this edge. |
void |
remove()
Removes this Edge from the graph. |
void |
setEnd(Graph.Node node)
Sets the ending Node of this edge. |
void |
setLabel(java.lang.Object label)
Sets the label of this edge. |
void |
setStart(Graph.Node node)
Sets the starting Node of this edge. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected Graph.Node startNode
protected Graph.Node endNode
protected java.lang.Object label
Constructor Detail |
public Graph.Node.Edge(Graph.Node endNode)
endNode
- The end node of the edge. It must be in the same graph.java.lang.IllegalArgumentException
- if endNode is not a node in the
same graph.public Graph.Node.Edge(Graph.Node endNode, java.lang.Object label)
endNode
- The end node of the edge.label
- The label of the edge.java.lang.IllegalArgumentException
- if endNode is not a node in the
same graph.Method Detail |
public void setLabel(java.lang.Object label)
public java.lang.Object getLabel()
Object
which is the label of this edge.public Graph.Node getStart()
Node
of this edge.Node
where the edge starts.public void setStart(Graph.Node node)
Node
of this edge.node
- the new starting Node
.java.lang.IllegalArgumentException
- if node is not a node in the
same graph.public Graph.Node getEnd()
Node
of this edge.Node
where the edge ends.public void setEnd(Graph.Node node)
Node
of this edge.node
- the new ending Node
.java.lang.IllegalArgumentException
- if node is not a node in the
same graph.public void remove()
Edge
from the graph.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |