edu.uci.ics.jung.algorithms.metrics
Class Metrics

java.lang.Object
  extended by edu.uci.ics.jung.algorithms.metrics.Metrics

public class Metrics
extends Object

A class consisting of static methods for calculating graph metrics.


Constructor Summary
Metrics()
           
 
Method Summary
static
<V,E> Map<V,Double>
clusteringCoefficients(Graph<V,E> graph)
          Returns a Map of vertices to their clustering coefficients.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Metrics

public Metrics()
Method Detail

clusteringCoefficients

public static <V,E> Map<V,Double> clusteringCoefficients(Graph<V,E> graph)
Returns a Map of vertices to their clustering coefficients. The clustering coefficient cc(v) of a vertex v is defined as follows:


Copyright © 2009. All Rights Reserved.