在 igraph 中查找 mincut_value 返回的边

发布于 2024-09-26 13:43:31 字数 67 浏览 0 评论 0原文

python igraph 中的 mincut_value 返回切割的边数。我可以找到该函数实际返回的边缘并打印它们吗?

mincut_value in igraph for python returns the number of edges of the cut. Can I find the what edges are actually are returned by this function and print them?

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

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

发布评论

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

评论(2

桃酥萝莉 2024-10-03 13:43:31

这在 igraph 的稳定版本(目前为 0.5.4)中是不可能的,但开发版本(0.6)支持它。 igraph_mincutcut 参数中为您提供最小切割本身。

This is not possible in the stable version of igraph (0.5.4 at the moment), but the development version (0.6) supports it. igraph_mincut gives you the minimum cut itself in the cut argument.

我的黑色迷你裙 2024-10-03 13:43:31

对此不太确定,但似乎 mincut python api 中的 不接受源和目标参数(如 c 对应部分)。

不过,我认为您应该能够使用 maxflow 达到同样的目的。看来它们应该是相似的(根据 wikipediaigraph c 文档)。

Not really sure about this, but it seems like mincut in the python api does not accept source and target arguments (like the c counterpart).

Still, I think you should be able to use maxflow to achieve the same thing. It seems they should be similar (according to wikipedia and igraph c docs).

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