helix.graph.algo.c3part.reporter
Class GraphStatistics
java.lang.Object
helix.graph.util.Reporter
helix.graph.algo.c3part.reporter.BaseReporter
helix.graph.algo.c3part.reporter.GraphStatistics
public class GraphStatistics
- extends BaseReporter
Method Summary |
static int[] |
componentsPerColor(Graph g)
compute number of connected components per color |
static int[][] |
epsilonMatrix(Graph g)
count the number of epsilon links between each datasubgraph
return the matrix of occurences (diagonal contains the
number of internal links) |
static void |
logStatistics(Graph g)
report graph statistics |
static int[] |
verticesPerColor(Graph g)
compute number of vertices per color |
GraphStatistics
public GraphStatistics()
epsilonMatrix
public static final int[][] epsilonMatrix(Graph g)
- count the number of epsilon links between each datasubgraph
return the matrix of occurences (diagonal contains the
number of internal links)
verticesPerColor
public static final int[] verticesPerColor(Graph g)
- compute number of vertices per color
componentsPerColor
public static final int[] componentsPerColor(Graph g)
- compute number of connected components per color
logStatistics
public static void logStatistics(Graph g)
- report graph statistics