Click or drag to resize
Accord.NET (logo)

RedBlackTreeTResort Method

Forces a re-balance of the tree by removing and inserting the same node.

Namespace:  Accord.Collections
Assembly:  Accord (in Accord.dll) Version: 3.8.0
public RedBlackTreeNode<T> Resort(
	RedBlackTreeNode<T> node
Request Example View Source


Type: Accord.CollectionsRedBlackTreeNodeT
The node to be re-balanced.

Return Value

Type: RedBlackTreeNodeT
The same node, or a new one if it had to be recreated.
See Also