Packagecom.yworks.yfiles.layout.hierarchic
Classpublic class EdgeReverser
InheritanceEdgeReverser Inheritance YObject Inheritance Object

Helper that reverses edges that are oriented in the wrong direction.



Public Methods
 MethodDefined By
  
EdgeReverser(init:Boolean = true)
EdgeReverser
 Inherited
equals(o:Object):Boolean
YObject
  
getClass():Class
[override]
EdgeReverser
 Inherited
hashCode():int
YObject
  
[static]
EdgeReverser
  
reverseEdges(g:Graph, edgeList:EdgeList):void
Reverses the edges contained ion the given edge list
EdgeReverser
  
[static] Reverses edges in the given graph whose source node has a larger layer ID than the target node.
EdgeReverser
Protected Methods
 MethodDefined By
  
EdgeReverser
Constructor Detail
EdgeReverser()Constructor
public function EdgeReverser(init:Boolean = true)



Parameters
init:Boolean (default = true)
Method Detail
getClass()method
override public function getClass():Class

Returns
Class
initEdgeReverser()method 
protected final function initEdgeReverser():void

newEdgeReverser()method 
public static function newEdgeReverser():EdgeReverser

Returns
EdgeReverser
reverseEdges()method 
public function reverseEdges(g:Graph, edgeList:EdgeList):void

Reverses the edges contained ion the given edge list

Parameters

g:Graph — the graph containing the edges in edgeList
 
edgeList:EdgeList — contains to be reversed edges.

reverseUpwardEdges()method 
public static function reverseUpwardEdges(g:Graph, layerMap:NodeMap):EdgeList

Reverses edges in the given graph whose source node has a larger layer ID than the target node.

Parameters

g:Graph — target graph
 
layerMap:NodeMap — node map that contains a layer ID for each node

Returns
EdgeList — a list of edges that have been reversed