public static org.jgrapht.WeightedGraph<String,org.jgrapht.graph.DefaultWeightedEdge> getWeightedGraph(Topology topology)
Convert FNSS Topology to JGraphT weighted graph.
The weights assigned to the edges of the returned graph are the link
weights of the original FNSS topology. If the topology object does not
have weights assigned, all nodes are assigned a weight equal to 1.
Because of the specific limitations of JGraphT, the edges of the returned
graph must be instances of JGraphT 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.