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

Class SuffixTree_

source code

         object --+    
                  |    
SuffixTreeInterface --+
                      |
                     SuffixTree_

Construit un suffix tree avec l'algorithme d'Ukkonen

Instance Methods [hide private]
 
__str__(self)
str(x)
source code
 
__init__(self, sequence, generalizedST=False)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
update(self, s, k, i)
Ajout du caractère en i
source code
 
testAndSplit(self, s, k, p, t)
Test si s,k,p est le end point et sinon explicite et renvoie s,k,p
source code
 
canonize(self, s, k, p)
Si s,k,p implicite, renvoie son plus proche ancêtre explicite
source code
 
annotate_path_position(self)
ajoute l'attribut path_position qui correspond à la position du 1er caractère de la branche
source code
 
__annotate_path_position(self, node, longueur) 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 object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__

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 object: __class__

Method Details [hide private]

__str__(self)
(Informal representation operator)

source code 
str(x)
Overrides: object.__str__
(inherited documentation)

__init__(self, sequence, generalizedST=False)
(Constructor)

source code 
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
Overrides: object.__init__
(inherited documentation)