is_planar_graph#

is_planar_graph(k: PlanarDiagram) bool#

Determines whether the given planar diagram represents a planar graph.

Args:

k (PlanarDiagram): The planar diagram.

Returns:

bool: True if all nodes are vertices, False otherwise.