def prune(self, depth=<NUM_LIT:0>):
for n in list(self.nodes):<EOL><INDENT>if len(n.links) <= depth:<EOL><INDENT>self.remove_node(n.id)<EOL><DEDENT><DEDENT>
Removes all nodes with less or equal links than depth.