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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.