DMNetworkGetNumVertices — PETSc 3.23.0 documentation

Skip to main content
`Ctrl`+`K`

# DMNetworkGetNumVertices

Get the local and global number of vertices for the entire network.

## Synopsis

    #include "petscdmnetwork.h"
    PetscErrorCode DMNetworkGetNumVertices(DM dm, PeOp PetscInt *nVertices, PeOp PetscInt *NVertices)

Not Collective

## Input Parameter

- dm - the `DMNETWORK` object

## Output Parameters

- nVertices - the local number of vertices, pass `NULL` if not needed

- NVertices - the global number of vertices, pass `NULL` if not needed

## See Also

`DM`, `DMNETWORK`, `DMNetworkGetNumEdges()`

## Level

beginner

## Location

src/dm/impls/network/network.c

Index of all DMNetwork routines
Table of Contents for all manual pages
Index of all manual pages