# PetscSFSetGraphSection
Sets the `PetscSF` graph encoding the parallel dof overlap based upon the `PetscSection` describing the data layout. 
## Synopsis
```
#include "petscsf.h"   
PetscErrorCode PetscSFSetGraphSection(PetscSF sf, PetscSection localSection, PetscSection globalSection)
```

## Input Parameters

- ***sf -*** The `PetscSF`
- ***localSection -*** `PetscSection` describing the local data layout
- ***globalSection -*** `PetscSection` describing the global data layout





## See Also
 `PetscSF`, `PetscSFSetGraph()`, `PetscSFSetGraphLayout()`

## Level
developer

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/vec/is/sf/utils/sfutils.c.html#PetscSFSetGraphSection">src/vec/is/sf/utils/sfutils.c</A>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/vec/is/sf/utils/sfutils.c)


[Index of all PetscSF routines](index.md)  
[Table of Contents for all manual pages](/docs/manualpages/index.md)  
[Index of all manual pages](/docs/manualpages/singleindex.md)  
