(self, child)
| 139 | return index |
| 140 | |
| 141 | def add_child(self, child): |
| 142 | # since it is a tree, there is only one parent |
| 143 | # note this means we do not allow edges between same layer units |
| 144 | if child.parent: |
| 145 | child.parent.remove_child(child) |
| 146 | child.parent = self |
| 147 | self.child_list.append(child) |
| 148 | |
| 149 | def descend(self, include_me=True): |
| 150 | """Descend depth first into all child nodes""" |
no test coverage detected