de.cesr.more.measures.network.supply.algos
Class MNetworkStatisticsR

java.lang.Object
  extended by 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

Constructor Summary
MNetworkStatisticsR()
           
 
Method Summary
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.
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MNetworkStatisticsR

public MNetworkStatisticsR()
Method Detail

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: