title: NetworkX generating a complete graph from a list of nodes
body: <p>I have been using NetworkX to find maximal cliques in a graph.  I am trying to take these cliques, and create new graphs, which I then want to add new nodes and edges to.</p>
  
  <pre><code>max_cliques = list(nx.find_cliques(mygraph)) //outputs list of lists of cliques
  for clique in max_cliques:
      mygraph = nx.Graph()
      mygraph.add_nodes_from(clique)
      mygraph = nx.complete_graph(clique)
  </code></pre>
  
  <p>When I do this, I receive the following error:</p>
  
  <blockquote>
    <p>TypeError: range() integer end argument expected, got list.</p>
  </blockquote>
  
  <p>I don't really follow, because the networkx docs say this about complete_graph's parameters:</p>
  
  <ul>
  <li><p><code>n</code> (int or iterable container of nodes) – If <code>n</code> is an integer, nodes
  are from <code>range(n)</code>. If <code>n</code> is a container of nodes, those nodes appear
  in the graph.</p></li>
  <li><p><code>create_using</code> (Graph, optional (default None)) – If provided this
  graph is cleared of nodes and edges and filled with the new graph.
  Usually used to set the type of the graph.</p></li>
  </ul>
  
  <p>I've tried a few variations of this but they all give me the same error if I try to use an iterable to populate my complete graph.  Can someone fill me in on what Iam doing wrong?</p>
  
  <p>Thanks.</p>