# DMNetworkGetNumComponents
Get the number of components at a vertex/edge 
## Synopsis
```
#include "petscdmnetwork.h"  
PetscErrorCode DMNetworkGetNumComponents(DM dm, PetscInt p, PetscInt *numcomponents)
```
Not Collective


## Input Parameters

- ***dm -*** the DMNetwork object
- ***p -*** vertex/edge point



## Output Parameters

- ***numcomponents -*** Number of components at the vertex/edge





## See Also
 `DMNetworkRegisterComponent()`, `DMNetworkAddComponent()`

## Level
beginner

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/impls/network/network.c.html#DMNetworkGetNumComponents">src/dm/impls/network/network.c</A>


---
[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](/docs/manualpages/index.md)  
[Index of all manual pages](/docs/manualpages/singleindex.md)  
