public static < N > ImmutableGraph < N > singletonUndirectedGraph ( N node ) { final MutableGraph < N > graph = GraphBuilder . undirected ( ) . build ( ) ; graph . addNode ( node ) ; return ImmutableGraph . copyOf ( graph ) ; }
Returns an immutable undirected graph containing only the specified node .