Vertex connectivitiy in R

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!

Create a graph from the adjacency matrix. This is also mentioned in the introductory tutorial: igraph R manual pages

https://igraph.org/r/doc/graph_from_adjacency_matrix.html