Graph.FindCommonAncestor Method

Finds the common ancestor of all the nodes in the given collection.

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

Syntax

'Declaration
Public Shared Function FindCommonAncestor ( _
    nodes As IEnumerable(Of GraphNode) _
) As GraphGroup
public static GraphGroup FindCommonAncestor(
    IEnumerable<GraphNode> nodes
)
public:
static GraphGroup^ FindCommonAncestor(
    IEnumerable<GraphNode^>^ nodes
)
static member FindCommonAncestor : 
        nodes:IEnumerable<GraphNode> -> GraphGroup
public static function FindCommonAncestor(
    nodes : IEnumerable<GraphNode>
) : GraphGroup

Parameters

  • nodes
    Type: IEnumerable<GraphNode>

    The set of nodes to search.

Return Value

Type: Microsoft.VisualStudio.GraphModel.GraphGroup
The common ancestor group, or null if there is none.

.NET Framework Security

See Also

Reference

Graph Class

Microsoft.VisualStudio.GraphModel Namespace