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 ne in n.efferent:<EOL><INDENT>if ne not in self.added:<EOL><INDENT>hopNodes.add(ne)<EOL><DEDENT>hopEdges.append((ne, n, '<STR_LIT>', colour))<EOL><DEDENT><DEDENT>self.add_to_graph(hopNodes, hopEdges, nesting)<EOL>
Adds edges showing dependencies between source files listed in
the nodes.