# DMPlexGetTreeChildren
get the children of a point in the tree describing the point hierarchy (not the DAG) 
## Synopsis
```
#include "petscdmplex.h"   
PetscErrorCode DMPlexGetTreeChildren(DM dm, PetscInt point, PetscInt *numChildren, const PetscInt *children[])
```

## Input Parameters

- ***dm -*** the `DMPLEX` object
- ***point -*** the query point



## Output Parameters

- ***numChildren -*** if not NULL, set to the number of children
- ***children -*** if not NULL, set to a list children, or set to NULL if the point has no children





## See Also
 [](chapter_unstructured), `DM`, `DMPLEX`, `DMPlexSetTree()`, `DMPlexGetTree()`, `DMPlexGetTreeParent()`

## Level
intermediate

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


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/dm/impls/plex/plextree.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)  
