N
- The type of the Nodes in the graphE
- The type of the Edges in the graphpublic class CartesianRewire<N extends PositionableNode,E> extends Rewire<N,E>
This rewiring algorithm only considers edges once, at this time. If the graph is directed, and the user wishes both directions to be set, they must do so themselves in their EdgeLabeler.
Constructor and Description |
---|
CartesianRewire(Graph<N,E> graph,
EdgeLabeler<N,E> el,
java.awt.Dimension bound,
float range)
Create a new CartesianRewire instance, for the given graph, wiring up
nodes that are within the given distance.
|
CartesianRewire(Graph<N,E> graph,
EdgeLabeler<N,E> el,
float range)
Create a new CartesianRewire instance, for the given graph, wiring up
nodes that are within the given distance.
|
Modifier and Type | Method and Description |
---|---|
void |
rewire()
Rewire the whole graph.
|
public CartesianRewire(Graph<N,E> graph, EdgeLabeler<N,E> el, java.awt.Dimension bound, float range)
graph
- The graph to rewire.el
- The EdgeLaber to callback to create labels.bound
- The positional boundary for nodes, used for grid-indexing.range
- The maximum range for links between nodes.public CartesianRewire(Graph<N,E> graph, EdgeLabeler<N,E> el, float range)
graph
- The graph to rewire.el
- The EdgeLaber to callback to create labels.range
- The maximum range for links between nodes.