Skip to content

Instantly share code, notes, and snippets.

@paratechnical
Created June 4, 2012 15:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save paratechnical/2869155 to your computer and use it in GitHub Desktop.
Save paratechnical/2869155 to your computer and use it in GitHub Desktop.
C# radix tree node
/// <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