Package Bio :: Package Nexus :: Module Nodes :: Class Node
[hide private]
[frames] | no frames]

Class Node

source code

object --+
         |
        Node

A single node.

Instance Methods [hide private]
 
__init__(self, data=None)
Represents a node with one predecessor and multiple successors.
source code
 
set_id(self, id)
Sets the id of a node, if not set yet.
source code
 
get_id(self)
Returns the node's id.
source code
 
get_succ(self)
Returns a list of the node's successors.
source code
 
get_prev(self)
Returns the id of the node's predecessor.
source code
 
add_succ(self, id)
Adds a node id to the node's successors.
source code
 
remove_succ(self, id)
Removes a node id from the node's successors.
source code
 
set_succ(self, new_succ)
Sets the node's successors.
source code
 
set_prev(self, id)
Sets the node's predecessor.
source code
 
get_data(self)
Returns a node's data.
source code
 
set_data(self, data)
Sets a node's data.
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, data=None)
(Constructor)

source code 
Represents a node with one predecessor and multiple successors.

Overrides: object.__init__