Defined in File LeftRightPlanarityCheck.hpp
public NetworKit::Algorithm
(Class Algorithm)
Public Functions
Implements the left-right planarity test as described in citation. This algorithm determines whether a graph is planar, i.e., whether it can be drawn on a plane without any edges crossing. For an overview of planar graphs, refer to: https://en.wikipedia.org/wiki/Planar_graph
The algorithm achieves (almost) linear runtime complexity. The only non-linear component arises from sorting the nodes of the depth-first search tree.
G – The input graph to test for planarity. The graph should be undirected.
std::runtime_error – if graph is not an undirected graph
Executes the left-right planarity test on the input graph. This method performs all necessary computations to determine whether the graph is planar and prepares the result for retrieval via the isPlanar()
method.