#include "petscmat.h" PetscErrorCode MatColoringSetMaxColors(MatColoring mc,PetscInt maxcolors)Logically Collective on MatColoring
mc | - the MatColoring context | |
maxcolors | - the maximum number of colors to produce |
Notes: This may be used to compute a certain number of independent sets from the graph. For instance, while using MATCOLORINGMIS and maxcolors = 1, one gets out an MIS. Vertices not in a color are set to have color maxcolors+1, which is not a valid color as they may be adjacent.