Class HorizontalCoordinateAssignment<V,E>
- java.lang.Object
-
- org.jungrapht.visualization.layout.algorithms.sugiyama.HorizontalCoordinateAssignment<V,E>
-
- Direct Known Subclasses:
HorizontalCoordinateAssignment,HorizontalCoordinateAssignmentDeprecated,SelectiveSugiyamaHorizontalCoordinateAssignment
public class HorizontalCoordinateAssignment<V,E> extends Object
- See Also:
- "Fast and Simple Horizontal Coordinate Assignment, Ulrik Brandes and Boris Köpf, Department of Computer & Information Science, University of Konstanz"
-
-
Field Summary
Fields Modifier and Type Field Description protected booleanhorizontalBalancingprotected inthorizontalOffsetprotected LV<V>[][]layersprotected Set<LE<V,E>>markedSegmentsprotected org.jgrapht.alg.util.NeighborCache<LV<V>,LE<V,E>>neighborCacheprotected org.jgrapht.Graph<LV<V>,LE<V,E>>svGraphprotected intverticalOffset
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected int[]bounds(Collection<Integer> xValues)protected List<LV<V>>getUpperNeighbors(LV<V> v)return a list of the upper neighbors for the supplied vertex, sorted in index orderprotected voidhorizontalBalancing(HorizontalCompaction<V>... compactions)voidhorizontalCoordinateAssignment()protected booleanincidentToInnerSegment(LV<V> v)protected intpos(LV<V> v)protected LV<V>pred(LV<V> v)protected voidpreprocessing()protected LV<V>succ(LV<V> v)protected LV<V>upperNeighborFor(LV<V> v)
-
-
-
Method Detail
-
horizontalCoordinateAssignment
public void horizontalCoordinateAssignment()
-
horizontalBalancing
protected void horizontalBalancing(HorizontalCompaction<V>... compactions)
-
bounds
protected int[] bounds(Collection<Integer> xValues)
-
incidentToInnerSegment
protected boolean incidentToInnerSegment(LV<V> v)
- Parameters:
v- vertex to check- Returns:
- true iv v is incident to an inner segment between v's rank and the preceding rank
-
preprocessing
protected void preprocessing()
-
-