visualize_tree-backup_4.py 176 B

12345
  1. def nodes_by_prefix(self, name):
  2. """Return a list of all nodes whose names begin with a given prefix
  3. """
  4. return [x for x in self.nodes if x.name.startswith(name)]