Package it.unimi.dsi.webgraph
Class Check
java.lang.Object
it.unimi.dsi.webgraph.Check
public class Check
extends java.lang.Object
Static methods that check properties of immutable graphs.
-
Method Summary
Modifier and Type Method Description static void
main(java.lang.String[] args)
static boolean
symmetry(ImmutableGraph graph)
Check whether a graph is symmetric usingTransform.transpose(ImmutableGraph, ProgressLogger)
.static boolean
symmetry(ImmutableGraph graph, ProgressLogger pl)
Check whether a graph is symmetric usingTransform.transpose(ImmutableGraph, ProgressLogger)
.static boolean
symmetryOffline(ImmutableGraph graph, int batchSize)
Check whether a graph is symmetric usingTransform.transposeOffline(ImmutableGraph, int, File, ProgressLogger)
.static boolean
symmetryOffline(ImmutableGraph graph, int batchSize, java.io.File tempDir)
Check whether a graph is symmetric usingTransform.transposeOffline(ImmutableGraph, int, File, ProgressLogger)
.static boolean
symmetryOffline(ImmutableGraph graph, int batchSize, java.io.File tempDir, ProgressLogger pl)
Check whether a graph is symmetric usingTransform.transposeOffline(ImmutableGraph, int, File, ProgressLogger)
.
-
Method Details
-
symmetry
Check whether a graph is symmetric usingTransform.transpose(ImmutableGraph, ProgressLogger)
.- Parameters:
graph
- a graph.- Returns:
- whether
graph
is symmetric.
-
symmetry
Check whether a graph is symmetric usingTransform.transpose(ImmutableGraph, ProgressLogger)
.- Parameters:
graph
- a graph.pl
- passed toTransform.transpose(ImmutableGraph, ProgressLogger)
.- Returns:
- whether
graph
is symmetric.
-
symmetryOffline
public static boolean symmetryOffline(ImmutableGraph graph, int batchSize) throws java.io.IOExceptionCheck 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
graph
is symmetric. - Throws:
java.io.IOException
-
symmetryOffline
public static boolean symmetryOffline(ImmutableGraph graph, int batchSize, java.io.File tempDir) throws java.io.IOExceptionCheck 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
graph
is symmetric. - Throws:
java.io.IOException
-
symmetryOffline
public static boolean symmetryOffline(ImmutableGraph graph, int batchSize, java.io.File tempDir, ProgressLogger pl) throws java.io.IOExceptionCheck 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
graph
is 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, JSAPException- Throws:
java.io.IOException
java.lang.IllegalArgumentException
java.lang.SecurityException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
java.lang.NoSuchMethodException
JSAPException
-