Category "sna"

How can I add geographic distance matrix to an igraph network?

I have an igraph network of 169 nodes (neighbourhoods). I've added some vertices attributes using: V(g)$attribute. I'm going to study the impact of the geogra

How can I calculate the number of geodesics (shortest paths) going through a vertex or an edge in networkx?

The betweeness function in igraph of R defines the edge betweeness as the the number of geodesics (shortest paths) going through. However, the edge_betweenness_