MatColoringGetDegrees#
Compute the number of vertices reachable in the graph within a given distance for each locally owned row.
Synopsis#
#include "petscmat.h"
PetscErrorCode MatColoringGetDegrees(Mat G, PetscInt distance, PetscInt *degrees)
Collective
Input Parameters#
G - the graph matrix
distance - the distance (in graph edges) used to define the neighborhood
Output Parameter#
degrees - array (of local size) of neighborhood sizes for each row
See Also#
MatColoring, MatColoringCreateWeights(), MatColoringSetWeights()
Level#
developer
Location#
src/mat/graphops/color/utils/weights.c
Index of all MatGraphOperations routines
Table of Contents for all manual pages
Index of all manual pages