select
Creates a subgraph containing only the vertices and corresponding edges from the original graph that are present in the specified selection.
Return
A new directed graph containing the selected vertices and their respective edges from the original graph.
Parameters
selection
A set of vertices to include in the subgraph. Only the edges between these vertices will be retained in the resulting graph.