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 arbitraryImmutableGraph
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
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
main(java.lang.String[] arg)
-
-
-
Method Detail
-
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, com.martiansoftware.jsap.JSAPException, java.io.IOException
- Throws:
java.lang.IllegalArgumentException
java.lang.SecurityException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
java.lang.NoSuchMethodException
com.martiansoftware.jsap.JSAPException
java.io.IOException
-
-