createNewGraph library

Functions

createNewGraph<TNode, TEdge extends Edge<TNode>>(TNode root, Iterable<TNode> getChildren(TNode node), TEdge createEdge(TNode source, TNode target)) Graph<TNode, TEdge>
Creates a new graph with the given root and the specify getChildren method. The edges will created through the createEdge factory method.