# DMNetworkAssembleGraphStructures
Assembles vertex and edge data structures. Must be called after DMNetworkDistribute 
## Synopsis
```
#include "petscdmnetwork.h"  
PetscErrorCode DMNetworkAssembleGraphStructures(DM dm)
```
Collective on dm


## Input Parameters

- ***dm -*** the DMNetworkObject



## Note: the routine will create alternative orderings for the vertices and edges. Assume global network points are

points = [0 1 2 3 4 5 6]

where edges = [0,1,2,3] and vertices = [4,5,6]. The new orderings will be specific to the subset (i.e vertices = [0,1,2] <- [4,5,6]).

With this new ordering a local PetscSection, global PetscSection and PetscSF will be created specific to the subset.




## Level
intermediate

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/impls/network/network.c.html#DMNetworkAssembleGraphStructures">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)  
