Package it.unimi.dsi.webgraph.examples
Class BreadthFirst
java.lang.Object
it.unimi.dsi.webgraph.examples.BreadthFirst
public class BreadthFirst
extends java.lang.Object
The main method of this class loads an arbitrary
ImmutableGraph
and performs a breadth-first visit of the graph (optionally starting just from a given node, if provided,
in which case it prints the eccentricity of the node, i.e., the maximum distance from the node).-
Method Summary
Modifier and Type Method Description static void
main(java.lang.String[] arg)
-
Method Details
-
main
public static void main(java.lang.String[] arg) throws java.lang.IllegalArgumentException, java.lang.SecurityException, java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException, java.lang.NoSuchMethodException, JSAPException, java.io.IOException- Throws:
java.lang.IllegalArgumentException
java.lang.SecurityException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
java.lang.NoSuchMethodException
JSAPException
java.io.IOException
-