# MatColoringDestroy
Destroys the matrix coloring context 
## Synopsis
```
#include "petscmat.h"  
PetscErrorCode MatColoringDestroy(MatColoring *mc)
```
Collective


## Input Parameter

- ***mc -*** the `MatColoring` context





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

## Level
beginner

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

## Examples
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/mat/tutorials/ex16.c.html">src/mat/tutorials/ex16.c.html</A><BR>

## Implementations

<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/mat/color/impls/greedy/greedy.c.html#MatColoringDestroy_Greedy">MatColoringDestroy_Greedy in src/mat/color/impls/greedy/greedy.c</A><BR>
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/mat/color/impls/jp/jp.c.html#MatColoringDestroy_JP">MatColoringDestroy_JP in src/mat/color/impls/jp/jp.c</A><BR>


---
[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)  
