Package medite :: Package MediteAppli :: Module suffix_tree :: Class SuffixTree
[hide private]
[frames] | no frames]

Class SuffixTree

source code

             object --+    
                      |    
    SuffixTreeInterface --+
                          |
             object --+   |
                      |   |
_suffix_tree.SuffixTree --+
                          |
                         SuffixTree
Known Subclasses:
TrueGeneralisedSuffixTree

A higher-level wrapper around the C suffix tree type, _suffix_tree.SuffixTree. This class adds a few methods to the suffix tree, methods that are more easily expressed in Python than in C, and that can be written using the primitives exported from C.

Instance Methods [hide private]
 
__init__(self, s)
Build a suffix tree from the input string s.
source code

Inherited from SuffixTreeInterface: generate_MEM, generate_inner_nodes, generate_inner_nodes_2, generate_leaves, generate_post_order_nodes, generate_post_order_nodes_max, generate_pre_order_nodes, get_MEM

Inherited from SuffixTreeInterface (private): _annotate_nodes

Inherited from _suffix_tree.SuffixTree: __new__, substring

Inherited from object: __delattr__, __getattribute__, __hash__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Properties [hide private]

Inherited from SuffixTreeInterface: MEM, inner_nodes, inner_nodes_2, leaves, post_order_nodes, post_order_nodes_max, pre_order_nodes

Inherited from _suffix_tree.SuffixTree: root

Inherited from object: __class__

Method Details [hide private]

__init__(self, s)
(Constructor)

source code 
Build a suffix tree from the input string s. The string must not contain the special symbol $.
Overrides: _suffix_tree.SuffixTree.__init__