Trees | Index | Help |
---|
Package Bio :: Package Nexus :: Module Nodes :: Class Chain |
|
Tree
Method Summary | |
---|---|
Initiates a node chain: (self). | |
Attaches node to another: (self, node, prev). | |
Return a list of all node ids. | |
Deletes node from chain and relinks successors to predecessor: collapse(self, id). | |
Check if grandchild is a subnode of parent: is_parent_of(self,parent,grandchild). | |
Kills a node from chain without caring to what it is connected: kill(self,id). | |
Connects son to parent: link(self,son,parent). | |
Returns a list of all node_ids between two nodes (excluding start, including end): trace(start,end). | |
Disconnects node from his predecessor: unlink(self,id). |
Method Details |
---|
__init__(self)
Initiates a node chain: (self).
|
add(self, node, prev=None)Attaches node to another: (self, node, prev). |
all_ids(self)Return a list of all node ids. |
collapse(self, id)Deletes node from chain and relinks successors to predecessor: collapse(self, id). |
is_parent_of(self, parent, grandchild)Check if grandchild is a subnode of parent: is_parent_of(self,parent,grandchild). |
kill(self, id)Kills a node from chain without caring to what it is connected: kill(self,id). |
link(self, parent, child)Connects son to parent: link(self,son,parent). |
trace(self, start, finish)Returns a list of all node_ids between two nodes (excluding start, including end): trace(start,end). |
unlink(self, id)Disconnects node from his predecessor: unlink(self,id). |
Trees | Index | Help |
---|
Generated by Epydoc 2.1 on Thu Aug 10 20:04:50 2006 | http://epydoc.sf.net |