# MatPartitioningSetNumberVertexWeights
Sets the number of weights per vertex 
## Synopsis
```
#include "petscmat.h" 
PetscErrorCode MatPartitioningSetNumberVertexWeights(MatPartitioning partitioning, PetscInt ncon)
```
Not collective


## Input Parameters

- ***partitioning -*** the partitioning context
- ***ncon -*** the number of weights





## See Also
 `MatPartitioning`, `MatPartitioningSetVertexWeights()`

## Level
intermediate

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/mat/partition/partition.c.html#MatPartitioningSetNumberVertexWeights">src/mat/partition/partition.c</A>


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