|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectit.unimi.dsi.webgraph.Stats
public class Stats
Computes basic statistical data about a given graph.
This class loads a graph of given basename, and computes the following data:
StronglyConnectedComponents are present
(in particular, buckets and component sizes).
The graph is loaded offline: the only memory allocated is for indegree count (one integer per node) and for storing the actual counts (one integer per indegree/outdegree value).
| Method Summary | |
|---|---|
static void |
main(String[] arg)
|
static void |
run(ImmutableGraph graph,
BitSet buckets,
int[] sccsize,
CharSequence resultsBasename,
boolean saveDegrees,
ProgressLogger pl)
Computes stats for the given graph using a single traversal, storing the results in files with given basename. |
static void |
run(ImmutableGraph graph,
BitSet buckets,
int[] sccsize,
CharSequence resultsBasename,
ProgressLogger pl)
Computes stats for the given graph using a single traversal, storing the results in files with given basename. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void run(ImmutableGraph graph,
BitSet buckets,
int[] sccsize,
CharSequence resultsBasename,
ProgressLogger pl)
throws IOException
graph - the graph to be examined.buckets - the set of buckets of this graph, or null if this information is not available.sccsize - the sizes of strongly connected components, or null if this information is not available.resultsBasename - the basename for result files (see the class description).pl - a progress logger.
IOException
public static void run(ImmutableGraph graph,
BitSet buckets,
int[] sccsize,
CharSequence resultsBasename,
boolean saveDegrees,
ProgressLogger pl)
throws IOException
graph - the graph to be examined.buckets - the set of buckets of this graph, or null if this information is not available.sccsize - the sizes of strongly connected components, or null if this information is not available.resultsBasename - the basename for result files (see the class description).saveDegrees - if true, indegrees and outdegrees will be saved.pl - a progress logger.
IOException
public static void main(String[] arg)
throws IllegalArgumentException,
SecurityException,
IllegalAccessException,
InvocationTargetException,
NoSuchMethodException,
JSAPException,
IOException,
ClassNotFoundException
IllegalArgumentException
SecurityException
IllegalAccessException
InvocationTargetException
NoSuchMethodException
JSAPException
IOException
ClassNotFoundException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||