org.lucci.madhoc.network.util
Class Graph
java.lang.Object
org.lucci.madhoc.network.util.Graph
public class Graph
- extends java.lang.Object
- Author:
- luc.hogie
Constructor Summary |
Graph()
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Graph
public Graph()
getHops
public static java.util.List<java.util.Collection<Station>> getHops(NetworkingUnit networkingUnit,
int maxHop)
- Returns:
- a list in which the index is the hop index and the object at the given index is
the collection of stations at the given hop.
getMaximumDegree
public static int getMaximumDegree(Network net)
getMinimumDegree
public static int getMinimumDegree(Network net)
getAverageDegree
public static double getAverageDegree(Network net)
getRedundantConnections
public static java.util.Collection getRedundantConnections(Network net)
getPartitions
public static java.util.Collection<java.util.Collection<Station>> getPartitions(Network net)
getGreatestConnectedComponent
public static java.util.Collection<Station> getGreatestConnectedComponent(Network net)
findNetworkTypes
public static java.util.Collection findNetworkTypes(Network network)
findBridgesTowardsNetworkType
public static java.util.Collection findBridgesTowardsNetworkType(Network network,
NetworkingTechnology networkType)
findBridgesBetween
public static java.util.Collection findBridgesBetween(Network network,
NetworkingTechnology t1,
NetworkingTechnology t2)
findUnreachableNetworkTypes
public static java.util.Collection findUnreachableNetworkTypes(Network network)