public class LayeredNode
extends java.lang.Object
Constructor and Description |
---|
LayeredNode() |
Modifier and Type | Method and Description |
---|---|
void |
addIncEdge(LayeredEdge edge)
This method adds the given edge to this node incidence list.
|
void |
addInEdge(LayeredEdge edge)
This method adds the given edge to this node inedge list.
|
int |
getLevelNumber()
This method returns the level number of this layered node.
|
FlowLayoutVertex |
getOriginalVertex()
This method returns the original vertex of this layered node.
|
LayeredEdge |
inEdge()
This method returns the first inedge of this node inedge list.
|
java.util.Iterator |
inOutEdgeIterator()
This method returns the iterator of this node incidence list.
|
boolean |
isDummy()
This method returns the flag indicating if this layered node is dummy.
|
void |
setDummy(boolean isDummy)
This method sets the flag indicating if this layered node is dummy.
|
void |
setLevelNumber(int levelNumber)
This method sets the level number of this layered node.
|
void |
setOriginalVertex(FlowLayoutVertex vertex)
This method sets the original vertex of this layered node.
|
java.lang.String |
toString()
This auxiliary method returns the string containing the tag
of the original vertex of this node.
|
public void setLevelNumber(int levelNumber)
levelNumber
- the node level number.public int getLevelNumber()
public void setOriginalVertex(FlowLayoutVertex vertex)
vertex
- the original vertex.public FlowLayoutVertex getOriginalVertex()
public void setDummy(boolean isDummy)
isDummy
- the flag value.public boolean isDummy()
public void addIncEdge(LayeredEdge edge)
edge
- the edge to be add.public java.util.Iterator inOutEdgeIterator()
public void addInEdge(LayeredEdge edge)
edge
- the edge to be add.public LayeredEdge inEdge()
public java.lang.String toString()
toString
in class java.lang.Object