de.cesr.more.measures.network.supply.algos
Class MNetworkStatisticsR
java.lang.Object
de.cesr.more.measures.network.supply.algos.MNetworkStatisticsR
public class MNetworkStatisticsR
- extends Object
MORe
TODO write junit
TODO write measure supplier
- Date:
- 23.12.2010
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MNetworkStatisticsR
public MNetworkStatisticsR()
getAveragepathLengthR
public static <V,E extends MoreEdge<? super V>> double getAveragepathLengthR(Graph<V,E> graph,
boolean considerIsolates)
- Return
Double.NaN
when graph does not contain any edge.
If the graph is unconnected, the length of the missing paths are counted having
length vcount(graph), one longer than the longest possible geodesic in the network.
TODO automatically check whether graph is connected and pass result to R
- Type Parameters:
V
- E
- - Parameters:
graph
-
- Returns:
getAveragepathLengthClustersR
public static <V,E extends MoreEdge<? super V>> double[] getAveragepathLengthClustersR(Graph<V,E> graph,
boolean considerIsolates)
- Return
Double.NaN
when graph does not contain any edge.
If the graph is unconnected, the length of the missing paths are counted having
length vcount(graph), one longer than the longest possible geodesic in the network.
TODO automatically check whether graph is connected and pass result to R
- Type Parameters:
V
- E
- - Parameters:
graph
-
- Returns: