Compartilhar via


GraphDataObject.GetSubset(IEnumerable<GraphNode>, Int32) Method

Definition

Helper method that returns a new Graph containing all the selected nodes plus links and linked nodes up to the specified number of levels of indirection

public:
 static Microsoft::VisualStudio::GraphModel::Graph ^ GetSubset(System::Collections::Generic::IEnumerable<Microsoft::VisualStudio::GraphModel::GraphNode ^> ^ selection, int levels);
public static Microsoft.VisualStudio.GraphModel.Graph GetSubset (System.Collections.Generic.IEnumerable<Microsoft.VisualStudio.GraphModel.GraphNode> selection, int levels);
static member GetSubset : seq<Microsoft.VisualStudio.GraphModel.GraphNode> * int -> Microsoft.VisualStudio.GraphModel.Graph
Public Shared Function GetSubset (selection As IEnumerable(Of GraphNode), levels As Integer) As Graph

Parameters

selection
IEnumerable<GraphNode>

The selected nodes to clone

levels
Int32

The number of levels of indirection to include in the new graph

Returns

New Graph

Applies to