import scala collection immutable TreeMap class Vertex var content Lis

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
import scala.collection.immutable.TreeMap
class Vertex[T](var content: List[T] = Nil,
var parent : Vertex,
var pathLength: Int = 0,
var passedMask : Int = 0) {
var suffixLink : Vertex = null
var children = new TreeMap[Char, Vertex]
def contentLength(): Int = content.length
}