# PCBDDCSetLocalAdjacencyGraph
Set adjacency structure (CSR graph) of the local degrees of freedom. 
## Synopsis
```
#include "petscpc.h" 
PetscErrorCode PCBDDCSetLocalAdjacencyGraph(PC pc, PetscInt nvtxs, const PetscInt xadj[], const PetscInt adjncy[], PetscCopyMode copymode)
```
Not collective


## Input Parameters

- ***pc -*** the preconditioning context.
- ***nvtxs -*** number of local vertices of the graph (i.e., the number of local dofs).
- ***xadj, adjncy -*** the connectivity of the dofs in CSR format.
- ***copymode -*** supported modes are `PETSC_COPY_VALUES`, `PETSC_USE_POINTER` or `PETSC_OWN_POINTER`.





## Note
A dof is considered connected with all local dofs if xadj[dof+1]-xadj[dof] == 1 and adjncy[xadj[dof]] is negative.


## See Also
 `PCBDDC`, `PetscCopyMode`

## Level
intermediate

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ksp/pc/impls/bddc/bddc.c.html#PCBDDCSetLocalAdjacencyGraph">src/ksp/pc/impls/bddc/bddc.c</A>

## Examples
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ksp/ksp/tutorials/ex59.c.html">src/ksp/ksp/tutorials/ex59.c.html</A><BR>

## Implementations

<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ksp/pc/impls/bddc/bddc.c.html#PCBDDCSetLocalAdjacencyGraph_BDDC">PCBDDCSetLocalAdjacencyGraph_BDDC in src/ksp/pc/impls/bddc/bddc.c</A><BR>


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


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