:orphan: # DMNetworkAddSharedVertices Add shared vertices that connect two given subnetworks ## Synopsis ``` #include "petscdmnetwork.h" PetscErrorCode DMNetworkAddSharedVertices(DM dm, PetscInt anetnum, PetscInt bnetnum, PetscInt nsvtx, PetscInt asvtx[], PetscInt bsvtx[]) ``` Collective ## Input Parameters - ***dm -*** the `DMNETWORK` object - ***anetnum -*** first subnetwork global numbering returned by `DMNetworkAddSubnetwork()` - ***bnetnum -*** second subnetwork global numbering returned by `DMNetworkAddSubnetwork()` - ***nsvtx -*** number of vertices that are shared by the two subnetworks - ***asvtx -*** vertex index in the first subnetwork - ***bsvtx -*** vertex index in the second subnetwork ## See Also `DM`, `DMNETWORK`, `DMNetworkCreate()`, `DMNetworkAddSubnetwork()`, `DMNetworkGetSharedVertices()` ## Level beginner ## Location src/dm/impls/network/network.c --- [Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/dm/impls/network/network.c) [Index of all DMNetwork routines](index.md) [Table of Contents for all manual pages](/manualpages/index.md) [Index of all manual pages](/manualpages/singleindex.md)