title: Getting the biggest connected component in R igraph
body: <p>How do I get a subgraph of the the biggest component of a graph?</p>
  <p>Say for example I have a graph <code>g</code>.</p>
  <pre><code>size_components_g &lt;-clusters(g, mode=&quot;weak&quot;)$csize
  size_components_g
  #1 2 3 10 25 2 2 1
  
  max_size &lt;- max(size_components_g)
  max_size
  #25
  </code></pre>
  <p>So 25 is the biggest size.</p>
  <p>I want to extract the component that has these 25 vertices. How do I do that?</p>