Planar¶
Algorithms¶
The following algorithms are available:
-
jgrapht.algorithms.planar.boyer_myrvold(graph)[source]¶ The Boyer-Myrvold planarity testing algorithm.
- Parameters
graph – the graph
- Returns
a tuple whose first element is whether the graph is planar. The second is either an embedding (
PlanarEmbedding) or a Kuratowski subgraph.
-
jgrapht.algorithms.planar.is_planar(graph)[source]¶ The Boyer-Myrvold planarity testing algorithm.
- Parameters
graph – the graph
- Returns
a tuple whose first element is whether the graph is planar. The second is either an embedding (
PlanarEmbedding) or a Kuratowski subgraph.
Types¶
Combinatorial embeddings are represented using instances of the following class.