Class NetworkSimplex<V,E>
- java.lang.Object
-
- org.jungrapht.visualization.layout.algorithms.util.NetworkSimplex<V,E>
-
- Type Parameters:
V- vertex typeE- edge type
public class NetworkSimplex<V,E> extends Object
The NetworkSimplex algorithmThis class leverages a modified version of the NetworkSimplex class in
Microsoft Automatic Graph Layout,MSAGL
which is licensed as follows:
Copyright (c) Microsoft Corporation
All rights reserved.
MIT License
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
This file is re-licensed under the compatible BSD license.
- See Also:
- "A Technique for Drawing Directed Graphs. Emden R. Gansner, Eleftherios Koutsofios, Stephen C. North, and Gem-Phong Vo"
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classNetworkSimplex.Builder<V,E,T extends NetworkSimplex<V,E>,B extends NetworkSimplex.Builder<V,E,T,B>>
-
Field Summary
Fields Modifier and Type Field Description protected Map<LE<V,E>,Integer>cutMapprotected Map<LE<V,E>,Integer>cutValuesprotected Map<LE<V,E>,Boolean>edgeInTreeMapprotected List<List<LV<V>>>layerListprotected Map<LV<V>,Integer>layersprotected List<LV<V>>leavesprotected Map<LV<V>,Integer>limprotected Map<LV<V>,Integer>lowprotected Map<LV<V>,LE<V,E>>parentprotected Function<LE<V,E>,Integer>separationFunctionprotected org.jgrapht.Graph<LV<V>,LE<V,E>>svGraphprotected List<LV<V>>treeVerticesprotected Map<LV<V>,Boolean>vertexInTreeMapprotected Function<LE<V,E>,Integer>weightFunction
-
Constructor Summary
Constructors Modifier Constructor Description protectedNetworkSimplex(NetworkSimplex.Builder<V,E,?,?> builder)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <V,E>
NetworkSimplex.Builder<V,E,?,?>builder(org.jgrapht.Graph<LV<V>,LE<V,E>> svGraph)Map<LE<V,E>,Boolean>getEdgeInTreeMap()List<List<LV<V>>>getLayerList()List<LV<V>>getTreeVertices()Map<LV<V>,Boolean>getVertexInTreeMap()voidrun()
-
-
-
Constructor Detail
-
NetworkSimplex
protected NetworkSimplex(NetworkSimplex.Builder<V,E,?,?> builder)
-
-
Method Detail
-
builder
public static <V,E> NetworkSimplex.Builder<V,E,?,?> builder(org.jgrapht.Graph<LV<V>,LE<V,E>> svGraph)
- Type Parameters:
V- the vertex type- Returns:
- a
Builderready to configure
-
run
public void run()
-
-