public class JGraphGreedyCycleRemover extends Object implements JGraphHierarchicalLayoutStep
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
JGraphGreedyCycleRemover(Object[] roots)
Constructor that has the roots specified
|
Modifier and Type | Method and Description |
---|---|
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
|
protected List sources
protected List sinks
protected Object[] roots
public JGraphGreedyCycleRemover(Object[] roots)
roots
- the roots of this hierarchypublic JGraphHierarchyModel run(JGraphFacade facade, JGraphHierarchyModel model)
run
in interface JGraphHierarchicalLayoutStep
facade
- the facade describing the input graphmodel
- an internal model of the hierarchical layoutprotected Object[] getOrderedVertices(JGraphFacade facade)
facade
- the hierarchy facade to be acted uponCopyright (C) 2001-2009 JGraph Ltd. All rights reserved.