/** * Copyright (c) 2008, the JUNG Project and the Regents of the University * of California * All rights reserved. * * This software is open-source under the BSD license; see either * "license.txt" or * http://jung.sourceforge.net/license.txt for a description. * Created on Jun 7, 2008 * */ package edu.uci.ics.jung.algorithms.metrics; import java.util.ArrayList; import java.util.HashMap; import java.util.Map; import edu.uci.ics.jung.graph.Graph; /** * A class consisting of static methods for calculating graph metrics. */ public class Metrics { /** * Returns a Map of vertices to their clustering coefficients. * The clustering coefficient cc(v) of a vertex v is defined as follows: *