【发布时间】:2011-05-07 06:56:33
【问题描述】:
我需要使用 boost::disjoint_sets,但我不清楚 the documentation。有人可以解释一下每个模板参数的含义,或者给出一个创建disjoint_sets的小示例代码吗?
根据要求,我正在使用 disjoint_sets 来实现 Tarjan's off-line least common ancestors algorithm,即 - 值类型应该是 vertex_descriptor。
【问题讨论】:
-
哇,看起来很多人都很好奇,甚至没有多少人知道如何开始使用它。
-
在 SO 上至少有一个简单的使用示例:stackoverflow.com/questions/3738537/…
-
已经有人回答了这个问题,这让 C++ 和 boost 看起来很糟糕。 :)
-
已经有人回答了这个问题,它是stuck at the top of my SO homepage。 :)
-
我几乎不会称其为文档,它更像是智力上的混蛋
标签: c++ boost disjoint-sets