|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.draw2d.internal.graph.GraphVisitor
org.eclipse.draw2d.internal.graph.PopulateRanks
This class takes a DirectedGraph with an optimal rank assigment and a spanning tree, and populates the ranks of the DirectedGraph. Virtual nodes are inserted for edges that span 1 or more ranks.
Ranks are populated using a pre-order depth-first traversal of the spanning tree. For each node, all edges requiring virtual nodes are added to the ranks.
| Constructor Summary | |
PopulateRanks()
|
|
| Method Summary | |
void |
visit(DirectedGraph g)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public PopulateRanks()
| Method Detail |
public void visit(DirectedGraph g)
visit in class GraphVisitorGraphVisitor.visit(org.eclipse.draw2d.graph.DirectedGraph)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||