Package it.unimi.dsi.webgraph
Class Check
- java.lang.Object
-
- it.unimi.dsi.webgraph.Check
-
public class Check extends java.lang.ObjectStatic methods that check properties of immutable graphs.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidmain(java.lang.String[] args)static booleansymmetry(ImmutableGraph graph)Check whether a graph is symmetric usingTransform.transpose(ImmutableGraph, ProgressLogger).static booleansymmetry(ImmutableGraph graph, it.unimi.dsi.logging.ProgressLogger pl)Check whether a graph is symmetric usingTransform.transpose(ImmutableGraph, ProgressLogger).static booleansymmetryOffline(ImmutableGraph graph, int batchSize)Check whether a graph is symmetric usingTransform.transposeOffline(ImmutableGraph, int, File, ProgressLogger).static booleansymmetryOffline(ImmutableGraph graph, int batchSize, java.io.File tempDir)Check whether a graph is symmetric usingTransform.transposeOffline(ImmutableGraph, int, File, ProgressLogger).static booleansymmetryOffline(ImmutableGraph graph, int batchSize, java.io.File tempDir, it.unimi.dsi.logging.ProgressLogger pl)Check whether a graph is symmetric usingTransform.transposeOffline(ImmutableGraph, int, File, ProgressLogger).
-
-
-
Method Detail
-
symmetry
public static boolean symmetry(ImmutableGraph graph)
Check whether a graph is symmetric usingTransform.transpose(ImmutableGraph, ProgressLogger).- Parameters:
graph- a graph.- Returns:
- whether
graphis symmetric.
-
symmetry
public static boolean symmetry(ImmutableGraph graph, it.unimi.dsi.logging.ProgressLogger pl)
Check whether a graph is symmetric usingTransform.transpose(ImmutableGraph, ProgressLogger).- Parameters:
graph- a graph.pl- passed toTransform.transpose(ImmutableGraph, ProgressLogger).- Returns:
- whether
graphis symmetric.
-
symmetryOffline
public static boolean symmetryOffline(ImmutableGraph graph, int batchSize) throws java.io.IOException
Check whether a graph is symmetric usingTransform.transposeOffline(ImmutableGraph, int, File, ProgressLogger).- Parameters:
graph- a graph.batchSize- passed toTransform.transposeOffline(ImmutableGraph, int, File, ProgressLogger).- Returns:
- whether
graphis symmetric. - Throws:
java.io.IOException
-
symmetryOffline
public static boolean symmetryOffline(ImmutableGraph graph, int batchSize, java.io.File tempDir) throws java.io.IOException
Check whether a graph is symmetric usingTransform.transposeOffline(ImmutableGraph, int, File, ProgressLogger).- Parameters:
graph- a graph.batchSize- passed toTransform.transposeOffline(ImmutableGraph, int, File, ProgressLogger).tempDir- passed toTransform.transposeOffline(ImmutableGraph, int, File, ProgressLogger).- Returns:
- whether
graphis symmetric. - Throws:
java.io.IOException
-
symmetryOffline
public static boolean symmetryOffline(ImmutableGraph graph, int batchSize, java.io.File tempDir, it.unimi.dsi.logging.ProgressLogger pl) throws java.io.IOException
Check whether a graph is symmetric usingTransform.transposeOffline(ImmutableGraph, int, File, ProgressLogger).- Parameters:
graph- a graph.batchSize- passed toTransform.transposeOffline(ImmutableGraph, int, File, ProgressLogger).tempDir- passed toTransform.transposeOffline(ImmutableGraph, int, File, ProgressLogger).pl- passed toTransform.transposeOffline(ImmutableGraph, int, File, ProgressLogger).- Returns:
- whether
graphis symmetric. - Throws:
java.io.IOException
-
main
public static void main(java.lang.String[] args) throws java.io.IOException, java.lang.IllegalArgumentException, java.lang.SecurityException, java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException, java.lang.NoSuchMethodException, com.martiansoftware.jsap.JSAPException- Throws:
java.io.IOExceptionjava.lang.IllegalArgumentExceptionjava.lang.SecurityExceptionjava.lang.IllegalAccessExceptionjava.lang.reflect.InvocationTargetExceptionjava.lang.NoSuchMethodExceptioncom.martiansoftware.jsap.JSAPException
-
-