Creates a subgraph using the given roots. This is done by traversing the graph and only adding the vertices and edges that we come across.
See Implementation
Creates a subgraph using the given roots. This is done by traversing the graph and only adding the vertices and edges that we come across.