public static class GraphUtils.JUNGUtils
extends java.lang.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 |
getDemandLayerGraph(NetPlan netPlan)
Returns a graph representing the traffic demands (nodes and links) of the network plan.
|
static |
getEdgeWeightTransformer(double[] edgeWeightVector)
Obtains a transformer for returning link weight from link identifier
|
static |
getEdgeWeightTransformer(int[] edgeWeightVector)
Obtains a transformer for returning link weight from link identifier
|
static |
getGraphFromLinkTable(int[][] linkTable,
int N)
Obtains a
JUNG graph from a given link table. |
static <E> double |
getPathWeight(java.util.List<E> path,
Returns the weight of a path given the sequence of edges.
|
static |
getPhysicalLayerGraph(NetPlan netPlan)
Returns a graph representing the physical topology (nodes and links) of the network plan.
|
public staticgetGraphFromLinkTable(int[][] linkTable, int N)
JUNG graph from a given link table.linkTable - Set of installed links (first column: origin node, second column: destination node)N - Number of nodesJUNG graphpublic static <E> double getPathWeight(java.util.List<E> path,
edgeWeightTransformer)
E - Class type for edgespath - Sequence of edgeedgeWeightTransformer - The class responsible for returning weights for edgespublic staticgetEdgeWeightTransformer(double[] edgeWeightVector)
edgeWeightVector - Link weightspublic staticgetEdgeWeightTransformer(int[] edgeWeightVector)
edgeWeightVector - Link weightspublic staticgetDemandLayerGraph(NetPlan netPlan)
netPlan - A network planpublic staticgetPhysicalLayerGraph(NetPlan netPlan)
netPlan - A network plan