GraphDataObject.GetSubset(IEnumerable<GraphNode>, Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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