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. 17 self.connex.append(
None)
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> 38 self.existing_connex.append(self.
nconnex)
43 Change the index of the all the nodes belonging to a connex component. 44 Useful when merging two connex components. 47 self.existing_connex.remove(past)
48 self.
connex = [c
if c != past
else future
for c
in self.
connex]
53 '''Return the list of all node indexes belonging to connex component <connex>.''' 54 return [i
for i, c
in enumerate(self.
connex)
if c == connex]
result_of::push_front< V const, T >::type append(T const &t, V const &v)
Append the element T at the front of boost fusion vector V.
def add_edge(self, first, second, orientation=0)
def rename_connex(self, past, future)
def new_connex(self, idx)
def connexIndexes(self, connex)
def add_node(self, q=None, new_connex=False)