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((n, ne, '<STR_LIT>', colour))<EOL><DEDENT><DEDENT>if not self.add_to_graph(hopNodes, hopEdges, nesting):<EOL><INDENT>return<EOL><DEDENT>elif len(hopNodes) > <NUM_LIT:0>:<EOL><INDENT>if nesting < self.max_nesting:<EOL><INDENT>self.add_nodes(hopNodes, nesting=nesting+<NUM_LIT:1>)<EOL><DEDENT>else:<EOL><INDENT>self.truncated = nesting<EOL><DEDENT><DEDENT>
Adds nodes for the files which this one depends on. Adds
edges between them.