Created
June 4, 2012 15:50
-
-
Save paratechnical/2869155 to your computer and use it in GitHub Desktop.
C# radix tree node
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <summary> | |
/// represents a node in the radix tree | |
/// stores: | |
/// a label - string that the tree holds | |
/// a list of the node's subnodes - a list of other objects of this type | |
/// </summary> | |
public class Node | |
{ | |
public Node() | |
{ | |
Label = ""; | |
SubNodes = new List<Node>(); | |
} | |
public Node(string l) | |
{ | |
Label = l; | |
SubNodes = new List<Node>(); | |
} | |
public string Label; | |
public List<Node> SubNodes; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment