Helper that reverses edges that are oriented in the wrong direction.
public function EdgeReverser(init:Boolean = true)
Parameters | init:Boolean (default = true )
|
override public function getClass():Class
Returns protected final function initEdgeReverser():void
public static function newEdgeReverser():EdgeReverser
Returns 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.
|
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
|
Wed Oct 7 2015, 04:43 PM +02:00