Share via


GraphDataObject.GetSubset Method

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)

Syntax

'Declaration
Public Shared Function GetSubset ( _
    selection As IEnumerable(Of GraphNode), _
    levels As Integer _
) As Graph
public static Graph GetSubset(
    IEnumerable<GraphNode> selection,
    int levels
)
public:
static Graph^ GetSubset(
    IEnumerable<GraphNode^>^ selection, 
    int levels
)
static member GetSubset : 
        selection:IEnumerable<GraphNode> * 
        levels:int -> Graph
public static function GetSubset(
    selection : IEnumerable<GraphNode>, 
    levels : int
) : Graph

Parameters

  • selection
    Type: IEnumerable<GraphNode>

    The selected nodes to clone

  • levels
    Type: Int32

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

Return Value

Type: Microsoft.VisualStudio.GraphModel.Graph
New Graph

.NET Framework Security

See Also

Reference

GraphDataObject Class

Microsoft.VisualStudio.GraphModel Namespace