:orphan: # MatPartitioningSetUseEdgeWeights Set a flag to indicate whether or not to use edge weights. ## Synopsis ``` #include "petscmat.h" PetscErrorCode MatPartitioningSetUseEdgeWeights(MatPartitioning part, PetscBool use_edge_weights) ``` Logically Collective ## Input Parameters - ***part -*** the partitioning context - ***use_edge_weights -*** the flag indicateing whether or not to use edge weights. By default no edge weights will be used, that is, use_edge_weights is set to FALSE. If set use_edge_weights to TRUE, users need to make sure legal edge weights are stored in an ADJ matrix. ## Options Database Key - ***-mat_partitioning_use_edge_weights -*** (true or false) ## See Also [](ch_matrices), `Mat`, `MatPartitioning`, `MatPartitioningCreate()`, `MatPartitioningSetType()`, `MatPartitioningSetVertexWeights()`, `MatPartitioningSetPartitionWeights()` ## Level beginner ## Location src/mat/partition/partition.c ## Examples src/mat/tutorials/ex15.c
--- [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](/manualpages/index.md) [Index of all manual pages](/manualpages/singleindex.md)