# PetscSFGetLeafRange
Get the active leaf ranges 
## Synopsis
```
#include "petscsf.h" 
PetscErrorCode PetscSFGetLeafRange(PetscSF sf, PetscInt *minleaf, PetscInt *maxleaf)
```
Not Collective


## Input Parameter

- ***sf -*** star forest



## Output Parameters

- ***minleaf -*** minimum active leaf on this process. Return 0 if there are no leaves.
- ***maxleaf -*** maximum active leaf on this process. Return -1 if there are no leaves.





## See Also
 `PetscSFType`, `PetscSFCreate()`, `PetscSFView()`, `PetscSFSetGraph()`, `PetscSFGetGraph()`

## Level
developer

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/vec/is/sf/interface/sf.c.html#PetscSFGetLeafRange">src/vec/is/sf/interface/sf.c</A>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/vec/is/sf/interface/sf.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)  
