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 void
static boolean
symmetry
(ImmutableGraph graph) Check whether a graph is symmetric usingTransform.transpose(ImmutableGraph, ProgressLogger)
.static boolean
symmetry
(ImmutableGraph graph, it.unimi.dsi.logging.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, 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
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 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
graph
is 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
graph
is symmetric. - Throws:
IOException
-
main
public static void main(String[] args) throws IOException, IllegalArgumentException, SecurityException, IllegalAccessException, InvocationTargetException, NoSuchMethodException, com.martiansoftware.jsap.JSAPException - Throws:
IOException
IllegalArgumentException
SecurityException
IllegalAccessException
InvocationTargetException
NoSuchMethodException
com.martiansoftware.jsap.JSAPException
-