C# Class s1ck.GraphDB.Plugins.Index.BinaryTree.BinaryTreeIndex.BinaryTreeNode

This inner class represents a node in the binary tree. Each node has a left and a right child node, a search key and an associated value. Node: Key ---> Set of values / \ / \ Left Node Right Node
Show file Open project: sones/sones-bstindex-tutorial

Public Properties

Property Type Description
Key IComparable
Left BinaryTreeNode
Right BinaryTreeNode
Values HashSet

Public Methods

Method Description
BinaryTreeNode ( IComparable myKey, HashSet myValues ) : System

Creates a new instance of a tree node

Method Details

BinaryTreeNode() public method

Creates a new instance of a tree node
public BinaryTreeNode ( IComparable myKey, HashSet myValues ) : System
myKey IComparable Search key
myValues HashSet Associated values
return System

Property Details

Key public property

The indexed search key for that node
public IComparable Key
return IComparable

Left public property

Refers to the left child node
public BinaryTreeNode Left
return BinaryTreeNode

Right public property

Refers to the right child node
public BinaryTreeNode Right
return BinaryTreeNode

Values public property

The associated values for the search key
public HashSet Values
return HashSet