title: Plotting communities with python igraph
body: <p>I have a graph <code>g</code> in python-igraph. I can get a <code>VertexCluster</code> community structure with the following:</p>
  
  <pre><code>community = g.community_multilevel()
  </code></pre>
  
  <p><code>community.membership</code> gives me a list of the group membership of all the vertices in the graph.</p>
  
  <p>My question is really simple but I haven't found a python-specific answer on SO. How can I plot the graph with visualization of its community structure? Preferably to PDF, so something like</p>
  
  <pre><code>layout = g.layout("kk")
  plot(g, "graph.pdf", layout=layout) # Community detection?
  </code></pre>
  
  <p>Thanks a lot.</p>