# DMPlexRestoreTransitiveClosure
Restore the array of points on the transitive closure of the in-edges or out-edges for this point in the DAG 
## Synopsis
```
#include "petscdmplex.h"   
PetscErrorCode DMPlexRestoreTransitiveClosure(DM dm, PetscInt p, PetscBool useCone, PetscInt *numPoints, PetscInt *points[])
```
Not Collective


## Input Parameters

- ***dm        -*** The `DMPLEX`
- ***p         -*** The mesh point
- ***useCone   -*** `PETSC_TRUE` for the closure, otherwise return the star
- ***numPoints -*** The number of points in the closure, so points[] is of size 2*numPoints
- ***points    -*** The points and point orientations, interleaved as pairs [p0, o0, p1, o1, ...]





## Note
If not using internal storage (points is not NULL on input), this call is unnecessary


## See Also
 [](chapter_unstructured), `DM`, `DMPLEX`, `DMPlexGetTransitiveClosure()`, `DMPlexCreate()`, `DMPlexSetCone()`, `DMPlexSetChart()`, `DMPlexGetCone()`

## Level
beginner

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

## Examples
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/impls/plex/tutorials/ex11.c.html">src/dm/impls/plex/tutorials/ex11.c.html</A><BR>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/dm/impls/plex/plex.c)


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