I am looking for C++ Kruskal implementations to benchmark against my own... If you know a few good ones, please share!
There's boost::kruskal_minimum_spanning_tree
. Prim's algorithm is there too if you want to compare against that.
来源:https://stackoverflow.com/questions/4424512/kruskals-algorithm-in-c