title: Visualise networkx graph in Gephi
body: <p>I want to visualise my <strong>networkx</strong> graph in <strong>Gephi</strong>. My graph has two types of nodes <code>ntype="main"</code> and <code>ntype="sub"</code> as follows.</p>
  
  <pre><code>    [('organisation', {'ws': 347.9, 'ntype': 'main'}), ('employee', {'ws': 0, 'ntype': 'sub'}), 
  ('minor_staff', {'ws': 0, 'ntype': 'sub'}), ('assets', {'ws': 0, 'ntype': 'sub'}), 
  ('stocks', {'ws': 315.0, 'ntype': 'main'}), ('HR', {'ws': 0, 'ntype': 'sub'}), 
  ('Director_board', {'ws': 0, 'ntype': 'sub'}), ('stakeholders', {'ws': 0.1, 'ntype': 'sub'}),
   ('stockmarket', {'ws': 488.5, 'ntype': 'main'}), ('events', {'ws': 0, 'ntype': 'sub'}),
   ('facilities', {'ws': 0, 'ntype': 'extended'})]
  </code></pre>
  
  <p>When visualising with Gephi, I want to show my <code>main</code> nodes as blue and <code>sub</code> nodes as grey.</p>
  
  <p>Is there any special way of saving the nodes in networkx, for Gephi to identify these color codes?</p>