9 def add_node(self, q=None, new_connex=False):
11 Create the memory to store a new edge. Initialize all components to None.
12 Create an empty list of children.
22 def add_edge(self, first, second, orientation=0):
24 Add edge from first to second. Also add edge from second to first if orientation
35 Create a new connex component for node <idx>
43 Change the index of the all the nodes belonging to a connex component.
44 Useful when merging two connex components.
48 self.
connex = [c
if c != past
else future
for c
in self.
connex]
54 Return the list of all node indexes belonging to connex component <connex>.
56 return [i
for i, c
in enumerate(self.
connex)
if c == connex]
rename_connex(self, past, future)
add_edge(self, first, second, orientation=0)
add_node(self, q=None, new_connex=False)
connexIndexes(self, connex)