# Vertex connectivitiy in R

**URL:** https://igraph.discourse.group/t/vertex-connectivitiy-in-r/657
**Category:** Usage
**Tags:** R
**Created:** [2 March 2021 11:28 UTC](https://igraph.discourse.group/t/vertex-connectivitiy-in-r/657 "2021-03-02T11:28:45Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Blackeagle](https://avatars.discourse-cdn.com/v4/letter/b/85e7bf/32.png) [@Blackeagle](https://igraph.discourse.group/u/Blackeagle)
#### Post date: [2 March 2021 11:28 UTC](https://igraph.discourse.group/t/vertex-connectivitiy-in-r/657/1 "2021-03-02T11:28:45Z")

</div>

Hi there,

I have to calculate the vertex connectivity between two given vertices in R. The dataset is an adjacency matrix with 180 columns and rows and I want to calculate the connectivity between 4 defined vertex pairs.  
I know that there is this command “vertex\_connectivity(graph, source = NULL, target = NULL,  
checks = TRUE)” but I do not know how to transfer it to my analysis.

Any ideas how to do it? I would appreciate it very much!

Thank you in advance!

---

<div class="post-metadata">

### Author: ![szhorvat](https://yyz2.discourse-cdn.com/free1/user_avatar/igraph.discourse.group/szhorvat/32/3_2.png) [@szhorvat](https://igraph.discourse.group/u/szhorvat)
#### Post date: [8 March 2021 10:14 UTC](https://igraph.discourse.group/t/vertex-connectivitiy-in-r/657/2 "2021-03-08T10:14:00Z")

</div>

Create a graph from the adjacency matrix. This is also mentioned in the introductory tutorial: [igraph R manual pages](https://igraph.org/r/doc/aaa-igraph-package.html)

[https://igraph.org/r/doc/graph\_from\_adjacency\_matrix.html](https://igraph.org/r/doc/graph_from_adjacency_matrix.html)
