com.jgraph.layout.hierarchical
public class JGraphGreedyCycleRemover extends Object implements JGraphHierarchicalLayoutStep
Field Summary | |
---|---|
protected Object[] | roots
The root cells of this hierarchy |
protected List | sinks
A list of the end point nodes in the layout |
protected List | sources
A list of the start point nodes in the layout |
Constructor Summary | |
---|---|
JGraphGreedyCycleRemover(Object[] roots)
Constructor that has the roots specified |
Method Summary | |
---|---|
protected Object[] | getOrderedVertices(JGraphFacade facade)
Performs the actual greedy cycle removal routine.
|
JGraphHierarchyModel | run(JGraphFacade facade, JGraphHierarchyModel model)
Reverses cycles in the internal model using the graph information
specified
|
Parameters: roots the roots of this hierarchy
Parameters: facade the hierarchy facade to be acted upon
Returns: the ordered vertices
Parameters: facade the facade describing the input graph model an internal model of the hierarchical layout
Returns: the updated hierarchy model