it.unimi.dsi.webgraph
Class Check

java.lang.Object
  extended by it.unimi.dsi.webgraph.Check

public class Check
extends Object

Static methods that check properties of immutable graphs.


Method Summary
static void main(String[] args)
           
static boolean symmetry(ImmutableGraph graph)
          Check whether a graph is symmetric using Transform.transpose(ImmutableGraph, ProgressLogger).
static boolean symmetry(ImmutableGraph graph, ProgressLogger pl)
          Check whether a graph is symmetric using Transform.transpose(ImmutableGraph, ProgressLogger).
static boolean symmetryOffline(ImmutableGraph graph, int batchSize)
          Check whether a graph is symmetric using Transform.transposeOffline(ImmutableGraph, int, File, ProgressLogger).
static boolean symmetryOffline(ImmutableGraph graph, int batchSize, File tempDir)
          Check whether a graph is symmetric using Transform.transposeOffline(ImmutableGraph, int, File, ProgressLogger).
static boolean symmetryOffline(ImmutableGraph graph, int batchSize, File tempDir, ProgressLogger pl)
          Check whether a graph is symmetric using Transform.transposeOffline(ImmutableGraph, int, File, ProgressLogger).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

symmetry

public static boolean symmetry(ImmutableGraph graph)
Check whether a graph is symmetric using Transform.transpose(ImmutableGraph, ProgressLogger).

Parameters:
graph - a graph.
Returns:
whether graph is symmetric.

symmetry

public static boolean symmetry(ImmutableGraph graph,
                               ProgressLogger pl)
Check whether a graph is symmetric using Transform.transpose(ImmutableGraph, ProgressLogger).

Parameters:
graph - a graph.
pl - passed to Transform.transpose(ImmutableGraph, ProgressLogger).
Returns:
whether graph is symmetric.

symmetryOffline

public static boolean symmetryOffline(ImmutableGraph graph,
                                      int batchSize)
                               throws IOException
Check whether a graph is symmetric using Transform.transposeOffline(ImmutableGraph, int, File, ProgressLogger).

Parameters:
graph - a graph.
batchSize - passed to Transform.transposeOffline(ImmutableGraph, int, File, ProgressLogger).
Returns:
whether graph is symmetric.
Throws:
IOException

symmetryOffline

public static boolean symmetryOffline(ImmutableGraph graph,
                                      int batchSize,
                                      File tempDir)
                               throws IOException
Check whether a graph is symmetric using Transform.transposeOffline(ImmutableGraph, int, File, ProgressLogger).

Parameters:
graph - a graph.
batchSize - passed to Transform.transposeOffline(ImmutableGraph, int, File, ProgressLogger).
tempDir - passed to Transform.transposeOffline(ImmutableGraph, int, File, ProgressLogger).
Returns:
whether graph is symmetric.
Throws:
IOException

symmetryOffline

public static boolean symmetryOffline(ImmutableGraph graph,
                                      int batchSize,
                                      File tempDir,
                                      ProgressLogger pl)
                               throws IOException
Check whether a graph is symmetric using Transform.transposeOffline(ImmutableGraph, int, File, ProgressLogger).

Parameters:
graph - a graph.
batchSize - passed to Transform.transposeOffline(ImmutableGraph, int, File, ProgressLogger).
tempDir - passed to Transform.transposeOffline(ImmutableGraph, int, File, ProgressLogger).
pl - passed to Transform.transposeOffline(ImmutableGraph, int, File, ProgressLogger).
Returns:
whether graph is symmetric.
Throws:
IOException

main

public static void main(String[] args)
                 throws IOException,
                        IllegalArgumentException,
                        SecurityException,
                        IllegalAccessException,
                        InvocationTargetException,
                        NoSuchMethodException,
                        JSAPException
Throws:
IOException
IllegalArgumentException
SecurityException
IllegalAccessException
InvocationTargetException
NoSuchMethodException
JSAPException