def repr_node(self, dist, level=<NUM_LIT:1>):
output = [self._repr_dist(dist)]<EOL>for other, label in self.adjacency_list[dist]:<EOL><INDENT>dist = self._repr_dist(other)<EOL>if label is not None:<EOL><INDENT>dist = '<STR_LIT>' % (dist, label)<EOL><DEDENT>output.append('<STR_LIT:U+0020>' * level + str(dist))<EOL>suboutput = self.repr_node(other, level + <NUM_LIT:1>)<EOL>subs = suboutput.split('<STR_LIT:\n>')<EOL>output.extend(subs[<NUM_LIT:1>:])<EOL><DEDENT>return '<STR_LIT:\n>'.join(output)<EOL>
Prints only a subgraph