A single node.
|
__init__(self,
data=None)
Represents a node with one predecessor and multiple successors:
(self, data=None). |
source code
|
|
|
set_id(self,
id)
Sets the id of a node, if not set yet: (self,id). |
source code
|
|
|
get_id(self)
Returns the node's id: (self). |
source code
|
|
|
get_succ(self)
Returns a list of the node's successors: (self). |
source code
|
|
|
get_prev(self)
Returns the id of the node's predecessor: (self). |
source code
|
|
|
add_succ(self,
id)
Adds a node id to the node's successors: (self,id). |
source code
|
|
|
remove_succ(self,
id)
Removes a node id from the node's successors: (self,id). |
source code
|
|
|
set_succ(self,
new_succ)
Sets the node's successors: (self,new_succ). |
source code
|
|
|
set_prev(self,
id)
Sets the node's predecessor: (self,id). |
source code
|
|
|
get_data(self)
Returns a node's data: (self). |
source code
|
|
|
set_data(self,
data)
Sets a node's data: (self,data). |
source code
|
|
Inherited from object :
__delattr__ ,
__format__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__sizeof__ ,
__str__ ,
__subclasshook__
|