title: How to push multiple data in multimap in c++?
body: <p>I made an implementation of dfs in c++ by multimap container in this way:</p>
  
  <pre><code>multimap&lt;int, int&gt;g;
  </code></pre>
  
  <p>And we could add edges in the graph in this way:</p>
  
  <pre><code>g.insert(make_pair(1,2));
  </code></pre>
  
  <p>Now I'm going to implement the Khushkal Algorithm by multimap. But in this case I got one more extra data per node , the weight. So now I need to store, (1,2,3) for example , triple data in the multimap.</p>
  
  <p>Then what will be the multimap declaration look like??
  And how could I insert such nodes?</p>