:orphan:
# MatColoringWeightType
Type of weight scheme used for the coloring algorithm 
## Synopsis
```
typedef enum {
  MAT_COLORING_WEIGHT_RANDOM,
  MAT_COLORING_WEIGHT_LEXICAL,
  MAT_COLORING_WEIGHT_LF,
  MAT_COLORING_WEIGHT_SL
} MatColoringWeightType;
```

## Values

- ***`MAT_COLORING_RANDOM`  -*** Random weights
- ***`MAT_COLORING_LEXICAL` -*** Lexical weighting based upon global numbering.
- ***`MAT_COLORING_LF`      -*** Last-first weighting.





## See Also
 [](ch_matrices), `MatColoring`, `MatColoringCreate()`, `MatColoringSetWeightType()`, `MatColoringSetWeights()`

## Level
intermediate

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/include/petscmat.h.html#MatColoringWeightType">include/petscmat.h</A>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/include/petscmat.h)


[Index of all Mat routines](index.md)  
[Table of Contents for all manual pages](/manualpages/index.md)  
[Index of all manual pages](/manualpages/singleindex.md)  
