public class JGraphTConverter extends Object
Topology
objects to JGraphT graph objects.Modifier and Type | Method and Description |
---|---|
static org.jgrapht.Graph<String,Edge> |
getGraph(Topology topology)
Convert an FNSS Topology to a JGraphT graph.
|
static org.jgrapht.WeightedGraph<String,org.jgrapht.graph.DefaultWeightedEdge> |
getWeightedGraph(Topology topology)
Convert FNSS Topology to JGraphT weighted graph.
|
public static org.jgrapht.WeightedGraph<String,org.jgrapht.graph.DefaultWeightedEdge> getWeightedGraph(Topology topology)
DefaultWeightedEdge
, and
do not hold capacity, buffer sizes and delay information possibly present
in the original FNSS Topology. The returned graph maintains however
link weight information.
See examples for further information.topology
- FNSS Topology object