Example #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Edge"/> class.
 /// </summary>
 /// <param name="tree">
 /// The tree.
 /// </param>
 /// <param name="head">
 /// The head.
 /// </param>
 public Edge(SuffixTree tree, Node head)
 {
     this._tree      = tree;
     this.Head       = head;
     this.StartIndex = tree.CurrentSuffixEndIndex;
     this.EdgeNumber = this._tree.NextEdgeNumber++;
 }
Example #2
0
 public Node(SuffixTree tree)
 {
     _tree      = tree;
     Edges      = new Dictionary <char, Edge>();
     NodeNumber = _tree.NextNodeNumber++;
 }