public class JGraphGreedyCycleRemover extends java.lang.Object implements JGraphHierarchicalLayoutStep
Modifier and Type | Field and Description |
---|---|
protected java.lang.Object[] |
roots
The root cells of this hierarchy
|
protected java.util.List |
sinks
A list of the end point nodes in the layout
|
protected java.util.List |
sources
A list of the start point nodes in the layout
|
Constructor and Description |
---|
JGraphGreedyCycleRemover(java.lang.Object[] roots)
Constructor that has the roots specified
|
Modifier and Type | Method and Description |
---|---|
protected java.lang.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 java.util.List sources
protected java.util.List sinks
protected java.lang.Object[] roots
public JGraphGreedyCycleRemover(java.lang.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 java.lang.Object[] getOrderedVertices(JGraphFacade facade)
facade
- the hierarchy facade to be acted uponCopyright (C) 2001-2009 JGraph Ltd. All rights reserved.