30 Oct
2005
30 Oct
'05
8:51 p.m.
I've sucessfully created an program that uses kruskal_minimum_spanning_tree. I presently give a vector container to this algorithm, which it populates in providing its answer. Now I want to optimize my program by switching to set. For vector, I use "back_inserter(m_spanningTreeEdges)". For set, I've attempted to use "inserter(m_spanningTreeEdges,m_spanningTreeEdges.end())", but this doesn't work. Can somebody tell me the correct way to code this, or tell me that it isn't possible?