get_colors: Vertex coloring of a sparse undirected graph

View source: R/RcppExports.R

get_colorsR Documentation

Vertex coloring of a sparse undirected graph

Description

Generate proper vertex coloring of a sparse undirected graph.

Usage

get_colors(pntr, idx, nvars)

Arguments

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.

Details

For internal use. You should not have to call this function directly.

Value

An integer vector of length nvars, where each element represents the color of the corresponding vertex. Indices are zero-based.


braunm/sparseHessianFD documentation built on Oct. 26, 2022, 1:49 a.m.