C# 中的平面嵌入(平面遍历)算法
I have a graph G
. The graph is a planar graph.
I wish to find all the faces of the graph. I understand that constructing a planar embedding is the way to find the faces ( or regions, or cycles), such that all the edges must be shared by at most 2 faces.
Is there a readily made implementation of planar embedding algorithm in C#? Either commercial or open source is fine.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
在这里,这个 C# 项目表示它受到 Boost 库的启发,并表示它支持:
它似乎使用 Boyer -Myrvold 平面性测试:
https://github.com/OndrejNepozitek/GraphPlanarityTesting
Here, this C# project says it was inspired by the Boost library, and says it supports:
It appears to use Boyer-Myrvold Planarity Testing:
https://github.com/OndrejNepozitek/GraphPlanarityTesting
经过一番搜索,我发现平面面遍历 Boost库中的函数满足我的需求。
然后,可以用纯 C 方式包装该函数,并通过 PInvoke 从 C# 调用它。
After some searching, I found that Planar Face Traversal function in Boost library suits my needs.
One can then wrap the function in plain C manner and call it from C# via PInvoke.