comocma.hv.MultiList
class documentationcomocma.hv
(View In Hierarchy)
A special data structure needed by FonsecaHyperVolume.
It consists of several doubly linked lists that share common nodes. So, every node has multiple predecessors and successors, one in every list.
Class | Node | Undocumented |
Method | __init__ | Constructor. |
Method | __str__ | Undocumented |
Method | __len__ | Returns the number of lists that are included in this MultiList. |
Method | getLength | Returns the length of the i-th list. |
Method | append | Appends a node to the end of the list at the given index. |
Method | extend | Extends the list at the given index with the nodes. |
Method | remove | Removes and returns 'node' from all lists in [0, 'index'[. |
Method | reinsert | Inserts 'node' at the position it had in all lists in [0, 'index'[ before it was removed. This method assumes that the next and previous nodes of the node that is reinserted are in the list. |