# MATCOLORINGPOWER
Take the matrix's nth power, then do one-coloring on it. 


## Notes
This is merely a trivial test algorithm.

Supports any distance coloring.


## See Also
 `MatColoring`, `MatColoringType`, `MatColoringCreate()`, `MatColoring`, `MatColoringSetType()`

## Level
beginner

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/mat/color/impls/power/power.c.html#MATCOLORINGPOWER">src/mat/color/impls/power/power.c</A>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/mat/color/impls/power/power.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)  
