visualize_tree_2.py 139 B

12345
  1. def level(self, level):
  2. """Return a list of all nodes on a given level
  3. """
  4. return [x for x in self.nodes if x.level == level]