Search code examples
c#graphplanar-graph

Planar Embedding (Planar Face Traversal) Algorithm in 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.


Solution

  • 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.