GraphDataObject::GetSubset Method (IEnumerable<GraphNode^>^, Int32)

 

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

Namespace:   Microsoft.VisualStudio.GraphModel
Assembly:  Microsoft.VisualStudio.GraphModel (in Microsoft.VisualStudio.GraphModel.dll)

public:
static Graph^ GetSubset(
	IEnumerable<GraphNode^>^ selection,
	int levels
)

Parameters

selection
Type: System.Collections.Generic::IEnumerable<GraphNode^>^

The selected nodes to clone

levels
Type: System::Int32

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

Return Value

Type: Microsoft.VisualStudio.GraphModel::Graph^

New Graph

Return to top
Show: