Vertex class

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
import scala.collection.immutable.TreeMap
class Vertex(var workString : String, var startIndex : Int, var endIndex : Int, var parent : Vertex) {
var suffixLink : Vertex
var children : TreeMap[Character, Vertex]
var passedStringsMask : Int
var pathLength : Int
def workStringLength(): Int = (endIndex - startIndex)
}