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