如何使用 Boost 库读取点文件

发布于 2024-12-25 20:17:19 字数 106 浏览 7 评论 0原文

我目前正在使用 boost graph lib 来计算强连接组件,但他们页面上的示例似乎太旧了,无法工作,所以我现在如何使用 Boost 1.48 将文件读入 GraphvizDigraph 对象?

i am currently using boost graph lib to compute strongly connected component, but the example on their page seems to be too old to work, so how can I read a file into a GraphvizDigraph Object using Boost 1.48 now ?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

转瞬即逝 2025-01-01 20:17:19

您需要完整的 GraphvizDigraph 信息吗?如果您只需要一些顶点和边属性,可以使用 read_graphviz 函数将图加载到 adjacency_list 结构中。

Do you need the full GraphvizDigraph information? If you only need some of the vertex and edge properties, you can use read_graphviz function to load the graph into an adjacency_list structure.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文