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