Class GraphLayers
- java.lang.Object
-
- org.jungrapht.visualization.layout.algorithms.sugiyama.GraphLayers
-
public class GraphLayers extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <V,E>
List<List<LV<V>>>assign(org.jgrapht.Graph<LV<V>,LE<V,E>> dag)static <V> voidcheckLayers(List<List<LV<V>>> layers)static <V> voidcheckLayers(LV<V>[][] layers)static <V,E>
List<List<LV<V>>>coffmanGraham(org.jgrapht.Graph<LV<V>,LE<V,E>> dag, int width)static <V,E>
List<List<LV<V>>>coffmanGraham(org.jgrapht.Graph<LV<V>,LE<V,E>> dag, org.jgrapht.alg.util.NeighborCache<LV<V>,LE<V,E>> neighborCache, int width)static <V,E>
booleanisIsolatedVertex(org.jgrapht.Graph<V,E> graph, V v)static <V,E>
booleanisLoopVertex(org.jgrapht.Graph<V,E> graph, V v)static <V,E>
booleanisZeroDegreeVertex(org.jgrapht.Graph<V,E> graph, V v)static <V,E>
List<List<LV<V>>>longestPath(org.jgrapht.Graph<LV<V>,LE<V,E>> dag)static <V,E>
List<List<LV<V>>>longestPath(org.jgrapht.Graph<LV<V>,LE<V,E>> dag, org.jgrapht.alg.util.NeighborCache<LV<V>,LE<V,E>> neighborCache)static <V,E>
List<List<LV<V>>>longestPathReverse(org.jgrapht.Graph<LV<V>,LE<V,E>> dag)static <V,E>
List<List<LV<V>>>longestPathReverse(org.jgrapht.Graph<LV<V>,LE<V,E>> dag, org.jgrapht.alg.util.NeighborCache<LV<V>,LE<V,E>> neighborCache)static <V,E>
voidminimizeEdgeLength(org.jgrapht.Graph<LV<V>,LE<V,E>> dag, List<List<LV<V>>> layers)static <V,E>
List<List<LV<V>>>networkSimplex(org.jgrapht.Graph<LV<V>,LE<V,E>> dag)static <V,E>
intvertexIsolationScore(org.jgrapht.Graph<V,E> graph, V v)to set vertex order to normal -> loop -> zeroDegree
-
-
-
Method Detail
-
minimizeEdgeLength
public static <V,E> void minimizeEdgeLength(org.jgrapht.Graph<LV<V>,LE<V,E>> dag, List<List<LV<V>>> layers)
-
longestPath
public static <V,E> List<List<LV<V>>> longestPath(org.jgrapht.Graph<LV<V>,LE<V,E>> dag)
-
longestPath
public static <V,E> List<List<LV<V>>> longestPath(org.jgrapht.Graph<LV<V>,LE<V,E>> dag, org.jgrapht.alg.util.NeighborCache<LV<V>,LE<V,E>> neighborCache)
-
longestPathReverse
public static <V,E> List<List<LV<V>>> longestPathReverse(org.jgrapht.Graph<LV<V>,LE<V,E>> dag)
-
longestPathReverse
public static <V,E> List<List<LV<V>>> longestPathReverse(org.jgrapht.Graph<LV<V>,LE<V,E>> dag, org.jgrapht.alg.util.NeighborCache<LV<V>,LE<V,E>> neighborCache)
-
networkSimplex
public static <V,E> List<List<LV<V>>> networkSimplex(org.jgrapht.Graph<LV<V>,LE<V,E>> dag)
-
coffmanGraham
public static <V,E> List<List<LV<V>>> coffmanGraham(org.jgrapht.Graph<LV<V>,LE<V,E>> dag, int width)
-
coffmanGraham
public static <V,E> List<List<LV<V>>> coffmanGraham(org.jgrapht.Graph<LV<V>,LE<V,E>> dag, org.jgrapht.alg.util.NeighborCache<LV<V>,LE<V,E>> neighborCache, int width)
-
checkLayers
public static <V> void checkLayers(LV<V>[][] layers)
-
isLoopVertex
public static <V,E> boolean isLoopVertex(org.jgrapht.Graph<V,E> graph, V v)
-
isZeroDegreeVertex
public static <V,E> boolean isZeroDegreeVertex(org.jgrapht.Graph<V,E> graph, V v)
-
isIsolatedVertex
public static <V,E> boolean isIsolatedVertex(org.jgrapht.Graph<V,E> graph, V v)
-
vertexIsolationScore
public static <V,E> int vertexIsolationScore(org.jgrapht.Graph<V,E> graph, V v)to set vertex order to normal -> loop -> zeroDegree- Type Parameters:
V-E-- Parameters:
graph-v-- Returns:
-
-