:orphan: # PCGAMGCreateGraph Creates a graph that is used by the ``PCGAMGType`` in the coarsening process ## Synopsis ``` #include "petscpc.h" #include "petscksp.h" PetscErrorCode PCGAMGCreateGraph(PC pc, Mat A, Mat *G) ``` ## Input Parameters - ***pc -*** the `PCGAMG` - ***A -*** the matrix, for any level ## Output Parameter - ***G -*** the graph ## See Also `PCGAMGType`, `PCGAMG`, `PCGAMGSetType()` ## Level advanced ## Location src/ksp/pc/impls/gamg/gamg.c ## Implementations PCGAMGCreateGraph_AGG in src/ksp/pc/impls/gamg/agg.c
PCGAMGCreateGraph_Classical in src/ksp/pc/impls/gamg/classical.c
PCGAMGCreateGraph_GEO in src/ksp/pc/impls/gamg/geo.c
--- [Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/ksp/pc/impls/gamg/gamg.c) [Index of all PC routines](index.md) [Table of Contents for all manual pages](/manualpages/index.md) [Index of all manual pages](/manualpages/singleindex.md)