|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--y.layout.planar.SimpleEdgeRouter
Instances of this class route edges through a planar graph using it's dual graph
Field Summary | |
static short |
DUAL
|
static short |
REAL
|
Constructor Summary | |
SimpleEdgeRouter(PlanarInformation _planar)
|
Method Summary | |
void |
dijkstra(Graph graph,
Node s,
Node t,
boolean directed,
int[] cost,
int[] dist,
Edge[] pred)
|
void |
insertEdge(Edge currentEdge)
Inserts a single edge into the graph by routing through the dual graph. |
void |
insertEdges(EdgeList edges)
Inserts a list of edges into the graph by routing through the dual graph. |
void |
rerouteEdges(EdgeList edges)
this method tries to find better paths for all edges that caused crossings. |
void |
rerouteEdges(int iter,
EdgeList edges)
this method tries to find better paths for all edges that caused crossings. |
protected EdgeList |
routeEdge(Edge e,
short _pathStyle,
DualPlanarInformation dualPlanar,
Edge[] zeroEdges)
this method tries to find the best route through a graph. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final short DUAL
public static final short REAL
Constructor Detail |
public SimpleEdgeRouter(PlanarInformation _planar)
Method Detail |
public void insertEdges(EdgeList edges)
edges
- the edges to be routed routed.public void insertEdge(Edge currentEdge)
currentEdge
- the edge to be routed.protected EdgeList routeEdge(Edge e, short _pathStyle, DualPlanarInformation dualPlanar, Edge[] zeroEdges)
Precondition: a valid dual graph, dsp must be initialized
e
- the edge to be routed
public void rerouteEdges(int iter, EdgeList edges)
Precondition is a valid dual graph
iter
- number of iterations to perform, a value less or equal to
zero causes the the method
to run until the best possible result is foundpublic void rerouteEdges(EdgeList edges)
public void dijkstra(Graph graph, Node s, Node t, boolean directed, int[] cost, int[] dist, Edge[] pred)
|
© Copyright 2000-2003, yWorks GmbH. All rights reserved. 2003 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |