Trees | Index | Help |
---|
Package Bio :: Package Nexus :: Module Nodes :: Class Node |
|
Method Summary | |
---|---|
Represents a node with one predecessor and multiple successors: (self, data=None). | |
Adds a node id to the node's successors: (self,id). | |
Returns a node's data: (self). | |
Returns the node's id: (self). | |
Returns the id of the node's predecessor: (self). | |
Returns a list of the node's successors: (self). | |
Removes a node id from the node's successors: (self,id). | |
Sets a node's data: (self,data). | |
Sets the id of a node, if not set yet: (self,id). | |
Sets the node's predecessor: (self,id). | |
Sets the node's successors: (self,new_succ). |
Method Details |
---|
__init__(self,
data=None)
Represents a node with one predecessor and multiple successors:
(self, data=None).
|
add_succ(self, id)Adds a node id to the node's successors: (self,id). |
get_data(self)Returns a node's data: (self). |
get_id(self)Returns the node's id: (self). |
get_prev(self)Returns the id of the node's predecessor: (self). |
get_succ(self)Returns a list of the node's successors: (self). |
remove_succ(self, id)Removes a node id from the node's successors: (self,id). |
set_data(self, data)Sets a node's data: (self,data). |
set_id(self, id)Sets the id of a node, if not set yet: (self,id). |
set_prev(self, id)Sets the node's predecessor: (self,id). |
set_succ(self, new_succ)Sets the node's successors: (self,new_succ). |
Trees | Index | Help |
---|
Generated by Epydoc 2.1 on Wed Jan 31 09:58:01 2007 | http://epydoc.sf.net |