org.cfpm.caves.za.util
Class NetworkUtilities

java.lang.Object
  extended by org.cfpm.caves.za.util.NetworkUtilities

public class NetworkUtilities
extends java.lang.Object

Utility functions for networks.

Author:
Ruth

Constructor Summary
NetworkUtilities()
           
 
Method Summary
static double calcClustCoef(java.util.List nodes, java.lang.String linkType)
          Calculates the clustering coefficient (avg. density of "ego networks") in graph for links of the specified type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NetworkUtilities

public NetworkUtilities()
Method Detail

calcClustCoef

public static double calcClustCoef(java.util.List nodes,
                                   java.lang.String linkType)
Calculates the clustering coefficient (avg. density of "ego networks") in graph for links of the specified type. Taken from Repast: NetUtilities and changed to be able to work with a multi layer network.

Parameters:
nodes - the network for which the ClustCoef will be calculated