get_colors | R Documentation |
Generate proper vertex coloring of a sparse undirected graph.
get_colors(pntr, idx, nvars)
pntr, idx |
row pointers and column indices of the adjacency matrix, in compressed column-oriented format. Must use zero-based indexing. |
nvars |
Number of vertices. |
For internal use. You should not have to call this function directly.
An integer vector of length nvars, where each element represents the color of the corresponding vertex. Indices are zero-based.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.