Click or drag to resize

graphNodeCustomGetSibling Method

imbSCI | imbACE | imbNLP | imbWEM | imbWBI
Gets the sibling, relative to this node, positioned at n places defined by direction. It is range-safe, in sense: if node index + direction is higher then number of siblings, it will return the last sibling.

Namespace:  imbSCI.Data.collection.graph
Assembly:  imbSCI.Data (in imbSCI.Data.dll) Version: 0.3.70.
Syntax
C#
public IGraphNode GetSibling(
	int direction = 1
)
Request Example View Source

Parameters

direction (Optional)
Type: SystemInt32
The direction, relative to index of this node. If it is 0, it will return this node

Return Value

Type: IGraphNode
Sibling node, relative to index of this and direction specified
Remarks

If there is no parent: it will return null

If direction + index is less then zero, it will return sibling at zero

See Also