title: How to fill vectors by reading a file?
body: <p>I am trying to read a file which contains the adjacency list as</p>
  
  <p>1   37  79  164 15 <br>
  2   123 134 10  141 13</p>
  
  <p>where first number in every line is vertex and following numbers are its adjacent vertices.</p>
  
  <p>This is my code to read from the file . I have been able to put a line in a string but don't know how to proceed to populate the vector.</p>
  
  <pre><code>    ifstream ifs;
  string line;
  ifs.open("kargerMinCut.txt");
  std::vector&lt;vector &lt;int&gt; &gt; CadjList(vertices);
  while(getline(ifs,line)){
  }
  </code></pre>
  
  <p>Any suggestions ?</p>