helix.graph.algo.c3part.reporter
Class GraphStatistics

java.lang.Object
  extended by helix.graph.util.Reporter
      extended by helix.graph.algo.c3part.reporter.BaseReporter
          extended by helix.graph.algo.c3part.reporter.GraphStatistics

public class GraphStatistics
extends BaseReporter


Constructor Summary
GraphStatistics()
           
 
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
 
Methods inherited from class helix.graph.util.Reporter
isVerbose, log, print, println, setLogger, setPrinter, severe, warning
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GraphStatistics

public GraphStatistics()
Method Detail

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