import scala collection immutable TreeMap class Vertex var workString

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