Click or drag to resize
Accord.NET (logo)

TreeTNodeTraverse Method

Traverse the tree using a tree traversal method. Can be iterated with a foreach loop.

Namespace:  Accord.Collections
Assembly:  Accord (in Accord.dll) Version: 3.8.0
Syntax
public IEnumerable<TNode> Traverse(
	TraversalMethod<TNode> method
)
Request Example View Source

Parameters

method
Type: Accord.CollectionsTraversalMethodTNode
The tree traversal method. Common methods are available in the TreeTraversalstatic class.

Return Value

Type: IEnumerableTNode
An IEnumerableT object which can be used to traverse the tree using the chosen traversal method.
See Also