Descend depth first into all child nodes
(self, include_me=True)
| 147 | self.child_list.append(child) |
| 148 | |
| 149 | def descend(self, include_me=True): |
| 150 | """Descend depth first into all child nodes""" |
| 151 | if include_me: |
| 152 | yield self |
| 153 | |
| 154 | for child in self.child_list: |
| 155 | yield child |
| 156 | yield from child.descend() |
| 157 | |
| 158 | @property |
| 159 | def depth(self): |