public class DiscoverGraph
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static java.util.Set<Vertex> |
getEntireGraph(Vertex<?,?> initialVertex)
This algorithm visits all vertices in a graph.
|
public static java.util.Set<Vertex> getEntireGraph(Vertex<?,?> initialVertex)
If the graph is very large (i.e. greater than 100k vertices), it will be much faster to keep track of vertices as they are created than to create the graph and then collect it with this method.
initialVertex
- starting vertex for graph discovery