|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectedu.uci.ics.jung.statistics.GraphStatistics
A set of statistical measures for structural properties of a graph
| Constructor Summary | |
GraphStatistics()
|
|
| Method Summary | |
static cern.colt.list.DoubleArrayList |
averageDistances(Graph graph)
The set of average shortest path distances for each vertex. |
static cern.colt.list.DoubleArrayList |
clusteringCoefficients(UndirectedGraph graph)
For each vertex, the net fraction of edges that actually exist in the neighborhood of distance 1 around each vertex vs all possible edges that could exist are computed The clustering coefficient measures the degree to which a node's neighbors are neighbors with each other Note: You can use cern.jet.stat.Descriptive to compute various statistics from the DoubleArrayList |
static Histogram |
createHistogram(cern.colt.list.DoubleArrayList values,
double min,
int numBins,
double binWidth)
Creates a histogram from a sequence of doubles |
static int |
diameter(Graph g)
Computes the diameter (maximum shortest path length between any vertex pair) of the graph, ignoring edge weights. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public GraphStatistics()
| Method Detail |
public static cern.colt.list.DoubleArrayList clusteringCoefficients(UndirectedGraph graph)
graph - the graph for which the clustering coefficients are to be computed
public static cern.colt.list.DoubleArrayList averageDistances(Graph graph)
graph - the graph whose average distances are to be computed
public static int diameter(Graph g)
g - the graph
public static Histogram createHistogram(cern.colt.list.DoubleArrayList values,
double min,
int numBins,
double binWidth)
values - the sequence of doublesmin - the minimum value to bin off ofnumBins - the number of binsbinWidth - the width of the bin
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||