Share via


Graph.FindCommonAncestor Method

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

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

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