title: How to store a networkx graph for visualizing in Gephi?
body: <p>I am working on a pagerank algorithm using Networkx module in Python. I have a dictionary of lists, where key of the dictionary is the Title of the page and its value is all the Titles referenced through that page.</p>
  
  <p>So in order to create a visualization, I first did this:</p>
  
  <pre><code>G = nx.DiGraph()
  G = nx.from_dict_of_lists(ref_dict)
  </code></pre>
  
  <p>where <code>ref_dict</code> is the dictionary mentioned above.</p>
  
  <p>After creating the graph, I am using Networkx's <code>write_edgelist</code> function to store the Graph in the csv format.</p>
  
  <pre><code>nx.write_edgelist(subG,'PageRanks2.csv')
  </code></pre>
  
  <p>Herein lies my problem. The csv file is storing edges as:</p>
  
  <p>node1 node2 {}
  node1 node3 {}</p>
  
  <p>When I am using this file directly in Gephi, it treats the {} as a node and shows visualization accordingly. 
  So what should be the best format to store the networkx graph to visualize it?</p>