Click or drag to resize

graphToolsGetFirstNodeWithLeafsT Method

imbSCI | imbACE | imbNLP | imbWEM | imbWBI
Iterative procedure, returning graphNodeSetCollection with graphNodeSets rooted at node that has leafs (all or min) with leafNames

Namespace:  imbSCI.Data.collection.graph
Assembly:  imbSCI.Data (in imbSCI.Data.dll) Version: 0.3.70.
Syntax
C#
public static graphNodeSetCollection GetFirstNodeWithLeafs<T>(
	this IEnumerable<T> source,
	List<string> leafNames,
	int min = -1,
	int maxIterations = 50,
	int extraIterations = 5
)
where T : class, new(), IGraphNode
Request Example View Source

Parameters

source
Type: System.Collections.GenericIEnumerableT
The source - starting leaf or other branch nodes.
leafNames
Type: System.Collections.GenericListString
The leaf names.
min (Optional)
Type: SystemInt32
The minimum.
maxIterations (Optional)
Type: SystemInt32
The maximum iterations.
extraIterations (Optional)
Type: SystemInt32
The extra iterations.

Type Parameters

T

Return Value

Type: graphNodeSetCollection

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IEnumerableT. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also