SuffixTree-methods {Rlibstree}R Documentation

Constructor methods for an internal SuffixTree object.

Description

These methods create an internal suffix tree in C code and associated data structures. These return an object of class SuffixTree-class which is a reference to the internal C data.

Methods

There are two methods at present. One works from a previously created StringSet-class, and the other takes a collection of strings and constructs the StringSet-class and then constructs the SuffixTree-class.

x = "character"
if given a character vector, this constructs a StringSet from its string elements and then creates a SuffixTree from this StringSet.
x = "StringSet"
creates a SuffixTree directly from this StringSet by constructing the relevant nodes and edges in C.

[Package Rlibstree version 0.3-1 Index]