public static class GraphUtils.JUNGUtils
extends Object
Auxiliary class to work with the graph library JUNG.
Modifier and Type | Class and Description |
---|---|
static class |
GraphUtils.JUNGUtils.GraphPath<E>
Class to represent a path in a Graph.
|
Constructor and Description |
---|
GraphUtils.JUNGUtils() |
Modifier and Type | Method and Description |
---|---|
static edu.uci.ics.jung.graph.Graph<Integer,Integer> |
getDemandLayerGraph(NetPlan netPlan)
Returns a graph representing the traffic demands (nodes and links) of the network plan.
|
static org.apache.commons.collections15.Transformer<Integer,Double> |
getEdgeWeightTransformer(double[] edgeWeightVector) |
static edu.uci.ics.jung.graph.Graph<Integer,Integer> |
getGraphFromLinkTable(int[][] linkTable,
int N) |
static <E> double |
getPathWeight(List<E> path,
org.apache.commons.collections15.Transformer<E,Double> edgeWeightTransformer) |
static edu.uci.ics.jung.graph.Graph<Integer,Integer> |
getPhysicalLayerGraph(NetPlan netPlan)
Returns a graph representing the physical topology (nodes and links) of the network plan.
|
public static edu.uci.ics.jung.graph.Graph<Integer,Integer> getGraphFromLinkTable(int[][] linkTable, int N)
public static <E> double getPathWeight(List<E> path, org.apache.commons.collections15.Transformer<E,Double> edgeWeightTransformer)
path
- Sequence of linksedgeWeightTransformer
- The class responsible for returning weights for edgespublic static org.apache.commons.collections15.Transformer<Integer,Double> getEdgeWeightTransformer(double[] edgeWeightVector)
edgeWeightVector
- public static edu.uci.ics.jung.graph.Graph<Integer,Integer> getDemandLayerGraph(NetPlan netPlan)
netPlan
- A network planpublic static edu.uci.ics.jung.graph.Graph<Integer,Integer> getPhysicalLayerGraph(NetPlan netPlan)
netPlan
- A network plan