Graph.subgraph

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.

class Graph(A, B, EdgeDataAB = size_t, EdgeDataBA = size_t)
typeof(this)
subgraph
(
const(A[]) rootsA
,
const(B[]) rootsB
)
if (
!is(A == B)
)

Meta