Click or drag to resize

graphToolsGetAllRootsT Method

imbSCI | imbACE | imbNLP | imbWEM | imbWBI
Gets all roots.

Namespace:  imbSCI.Data.collection.graph
Assembly:  imbSCI.Data (in imbSCI.Data.dll) Version: 0.3.70.
Syntax
C#
public static List<T> GetAllRoots<T>(
	this IEnumerable<T> source,
	int maxIterations = 50,
	int extraIterations = 2,
	int targetCount = 1
)
where T : class, IGraphNode
Request Example View Source

Parameters

source
Type: System.Collections.GenericIEnumerableT
The source.
maxIterations (Optional)
Type: SystemInt32
The maximum iterations.
extraIterations (Optional)
Type: SystemInt32
The extra iterations.
targetCount (Optional)
Type: SystemInt32

Type Parameters

T

Return Value

Type: ListT

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