:orphan: # DMNetworkGetNumEdges Get the local and global number of edges for the entire network. ## Synopsis ``` #include "petscdmnetwork.h" PetscErrorCode DMNetworkGetNumEdges(DM dm, PetscInt *nEdges, PetscInt *NEdges) ``` Not Collective ## Input Parameter - ***dm -*** the `DMNETWORK` object ## Output Parameters - ***nEdges -*** the local number of edges - ***NEdges -*** the global number of edges ## See Also `DM`, `DMNETWORK`, `DMNetworkGetNumVertices()` ## Level beginner ## Location src/dm/impls/network/network.c --- [Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/dm/impls/network/network.c) [Index of all DMNetwork routines](index.md) [Table of Contents for all manual pages](/manualpages/index.md) [Index of all manual pages](/manualpages/singleindex.md)