parameters: (self, dist, level=1)
return_statement: return '\n'.join(output)
docstring: Prints only a subgraph
docstring_summary: Prints only a subgraph
docstring_tokens: Prints only a subgraph
function: def repr_node(self, dist, level=1):
          """Prints only a subgraph"""
          output = [self._repr_dist(dist)]
          for other, label in self.adjacency_list[dist]:
              dist = self._repr_dist(other)
              if label is not None:
                  dist = '%s [%s]' % (dist, label)
              output.append('    ' * level + str(dist))
              suboutput = self.repr_node(other, level + 1)
              subs = suboutput.split('\n')
              output.extend(subs[1:])
          return '\n'.join(output)
function_tokens: def repr_node ( self , dist , level = 1 ) : output = [ self . _repr_dist ( dist ) ] for other , label in self . adjacency_list [ dist ] : dist = self . _repr_dist ( other ) if label is not None : dist = '%s [%s]' % ( dist , label ) output . append ( '    ' * level + str ( dist ) ) suboutput = self . repr_node ( other , level + 1 ) subs = suboutput . split ( '\n' ) output . extend ( subs [ 1 : ] ) return '\n' . join ( output )