SuffixTree-methods         package:Rlibstree         R Documentation

_C_o_n_s_t_r_u_c_t_o_r _m_e_t_h_o_d_s _f_o_r _a_n _i_n_t_e_r_n_a_l _S_u_f_f_i_x_T_r_e_e _o_b_j_e_c_t.

_D_e_s_c_r_i_p_t_i_o_n:

     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.

_M_e_t_h_o_d_s:


          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 = "_c_h_a_r_a_c_t_e_r" if given a character vector, this constructs a
          'StringSet' from its string elements and then creates a 
          'SuffixTree' from this 'StringSet'.

     _x = "_S_t_r_i_n_g_S_e_t" creates a 'SuffixTree' directly from this 
          'StringSet' by constructing the relevant nodes and edges in
          C.

