Package | com.yworks.yfiles.layout.planar |
Class | public class SimpleEdgeRouter |
Inheritance | SimpleEdgeRouter YObject Object |
Property | Defined By | ||
---|---|---|---|
edgeWeight : EdgeMap [write-only] | SimpleEdgeRouter |
Method | Defined By | ||
---|---|---|---|
SimpleEdgeRouter(_planar:PlanarInformation, init:Boolean = true) | SimpleEdgeRouter | ||
dijkstra(graph:Graph, s:Node, t:Node, directed:Boolean, cost:Vector.<int>, dist:Vector.<int>, pred:Vector.<Object>):void | SimpleEdgeRouter | ||
equals(o:Object):Boolean | YObject | ||
getClass():Class [override] | SimpleEdgeRouter | ||
hashCode():int | YObject | ||
insertEdge(currentEdge:Edge):void
Inserts a single edge into the graph by routing through the dual graph. | SimpleEdgeRouter | ||
insertEdges(edges:EdgeList):void
Inserts a list of edges into the graph by routing through the dual graph. | SimpleEdgeRouter | ||
insertEdgesVirtual(edges:EdgeList):int | SimpleEdgeRouter | ||
[static] | SimpleEdgeRouter | ||
rerouteEdges(edges:EdgeList):void
Tries to find better paths for all edges that caused crossings. | SimpleEdgeRouter | ||
rerouteEdgesWithMaxIterations(iter:int, edges:EdgeList):void
Tries to find better paths for all edges that caused crossings. | SimpleEdgeRouter |
Method | Defined By | ||
---|---|---|---|
initSimpleEdgeRouter(_planar:PlanarInformation):void
Initializes this object. | SimpleEdgeRouter | ||
routeEdge(e:Edge, _pathStyle:int, dualPlanar:DualPlanarInformation, zeroEdges:Vector.<Object>):EdgeList
This method tries to find the best route through a graph. | SimpleEdgeRouter |
Constant | Defined By | ||
---|---|---|---|
DUAL : int = 0 [static]
| SimpleEdgeRouter | ||
REAL : int = 1 [static]
| SimpleEdgeRouter |
edgeWeight | property |
SimpleEdgeRouter | () | Constructor |
public function SimpleEdgeRouter(_planar:PlanarInformation, init:Boolean = true)
Parameters
_planar:PlanarInformation | |
init:Boolean (default = true ) — An internally used switch to help handle proper instance initialization in inheritance chains where classes can have multiple constructor-like factory methods.
This parameter can safely be ignored/omitted when calling the constructor.
|
dijkstra | () | method |
public function dijkstra(graph:Graph, s:Node, t:Node, directed:Boolean, cost:Vector.<int>, dist:Vector.<int>, pred:Vector.<Object>):void
Parameters
graph:Graph | |
s:Node | |
t:Node | |
directed:Boolean | |
cost:Vector.<int> | |
dist:Vector.<int> | |
pred:Vector.<Object> |
getClass | () | method |
override public function getClass():Class
ReturnsClass |
initSimpleEdgeRouter | () | method |
protected final function initSimpleEdgeRouter(_planar:PlanarInformation):void
Initializes this object. See the documentation of the corresponding factory method newSimpleEdgeRouter()
for details.
Parameters
_planar:PlanarInformation |
See also
insertEdge | () | method |
public function insertEdge(currentEdge:Edge):void
Inserts a single edge into the graph by routing through the dual graph.
Parameters
currentEdge:Edge — the edge to be routed.
|
insertEdges | () | method |
public function insertEdges(edges:EdgeList):void
Inserts a list of edges into the graph by routing through the dual graph.
Parameters
edges:EdgeList — the edges to be routed routed.
|
insertEdgesVirtual | () | method |
newSimpleEdgeRouter | () | method |
public static function newSimpleEdgeRouter(_planar:PlanarInformation):SimpleEdgeRouter
Parameters
_planar:PlanarInformation |
SimpleEdgeRouter |
rerouteEdges | () | method |
public function rerouteEdges(edges:EdgeList):void
Tries to find better paths for all edges that caused crossings.
Parameters
edges:EdgeList |
rerouteEdgesWithMaxIterations | () | method |
public function rerouteEdgesWithMaxIterations(iter:int, edges:EdgeList):void
Tries to find better paths for all edges that caused crossings.
Precondition is a valid dual graph
Parameters
iter:int — number of iterations to perform. A value less or equal to zero causes the method to run until the best possible result is found.
| |
edges:EdgeList |
routeEdge | () | method |
protected function routeEdge(e:Edge, _pathStyle:int, dualPlanar:DualPlanarInformation, zeroEdges:Vector.<Object>):EdgeList
This method tries to find the best route through a graph. Best means that the route causes as less crossings as possible.
Precondition a valid dual graph, dsp must be initialized
Parameters
e:Edge — the edge to be routed
| |
_pathStyle:int | |
dualPlanar:DualPlanarInformation | |
zeroEdges:Vector.<Object> |
EdgeList — the path through the dual graph that yielded the best result
|
DUAL | Constant |
public static const DUAL:int = 0
REAL | Constant |
public static const REAL:int = 1