View source: R/planarityembedding.R
PlanarColoring | R Documentation |
Checks if a graph is planar and returns the coloring of the graph
PlanarColoring(arcSources, arcTargets, numNodes, algorithm = "fiveColoring")
arcSources |
Vector corresponding to the source nodes of a graph's edges |
arcTargets |
Vector corresponding to the destination nodes of a graph's edges |
numNodes |
The number of nodes in the graph |
algorithm, |
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.
A named list containing 1) "is_planar": a logical
if the
graph is planar, 2) "colors": the color of each vertex of the graph
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.