# MatColoringSetWeightType
Set the type of weight computation used while computing the coloring 
## Synopsis
```
#include "petscmat.h"  
PetscErrorCode MatColoringSetWeightType(MatColoring mc, MatColoringWeightType wt)
```
Logically collective


## Input Parameters

- ***mc -*** the `MatColoring` context
+  wt - the weight type





## See Also
 `MatColoring`, `MatColoringWeightType`, `MatColoringApply()`

## Level
beginner

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/mat/color/interface/matcoloring.c.html#MatColoringSetWeightType">src/mat/color/interface/matcoloring.c</A>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/mat/color/interface/matcoloring.c)


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