def add_nodes(self, nodes, nesting=<NUM_LIT:1>):
hopNodes = set()  <EOL>hopEdges = []     <EOL>for i, n in zip(range(len(nodes)), nodes):<EOL><INDENT>r, g, b = rainbowcolour(i, len(nodes))<EOL>colour = '<STR_LIT>' % (r, g, b)<EOL>for p in n.calls:<EOL><INDENT>if p not in hopNodes:<EOL><INDENT>hopNodes.add(p)<EOL><DEDENT>hopEdges.append((n, p, '<STR_LIT>', colour))<EOL><DEDENT>for p in getattr(n, '<STR_LIT>', []):<EOL><INDENT>if p not in hopNodes:<EOL><INDENT>hopNodes.add(p)<EOL><DEDENT>hopEdges.append((n, p, '<STR_LIT>', colour))<EOL><DEDENT><DEDENT>if self.add_to_graph(hopNodes, hopEdges, nesting):<EOL><INDENT>self.dot.attr('<STR_LIT>', size='<STR_LIT>')<EOL>self.dot.attr('<STR_LIT>', concentrate='<STR_LIT:false>')<EOL><DEDENT>
Adds edges indicating the call-tree for the procedures listed in
the nodes.