Checks if a graph is planar and returns the coloring of the graph
PlanarColoring(arcSources, arcTargets, numNodes, algorithm = "fiveColoring")
A named list containing 1) "is_planar": a logical
if the
graph is planar, 2) "colors": the color of each vertex of the graph
Vector corresponding to the source nodes of a graph's edges
Vector corresponding to the destination nodes of a graph's edges
The number of nodes in the graph
the algorithm to use. "sixColoring" generates a 6-coloring of the graph, while "fiveColoring" generates a 5-coloring. Default is "fiveColoring".
See https://lemon.cs.elte.hu/pub/doc/1.3.1/a00306.html for more information.