|
Search this API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object y.layout.hierarchic.EdgeReverser
public class EdgeReverser
This is a helper class that reverses edges that are oriented in the wrong direction.
Method Summary | |
---|---|
static void |
reverseEdges(Graph graph,
EdgeList edgeList)
Reverses the edges contained in the given list of edges . |
static EdgeList |
reverseUpwardEdges(Graph graph,
NodeMap layerID)
Reverses edges of the given graph whose source node has a larger layer ID than the target node. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static EdgeList reverseUpwardEdges(Graph graph, NodeMap layerID)
graph
- the graphlayerID
- the NodeMap
that returns the zero-based index of the layer to which each node belongs
EdgeList
containing the edges that have been reversedpublic static void reverseEdges(Graph graph, EdgeList edgeList)
list of edges
.
graph
- the graphedgeList
- the EdgeList
containing the edges that must be reversed
|
© Copyright 2000-2022, yWorks GmbH. All rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |