Good Morning!

I am graduating from PUC Minas Brazil and my work theme of completion is on
the R language, specifically on the package IGRAPH. I wonder if you can
help me understand how R calculates the centrality of edges in the function
below:

edge.betweenness (malha)
[1] 0 0 0 0 5 5 8 8 0 0 5 5 8 8 9 9

Attached hereto that the model did with the function result.

Many thanks and hugs!

-- 

*Luiz Henrique Xavier
*

**Estudante de Sistemas de Informação
Universidade PUC - Contagem - MG - Brasil

[email protected]
0 1
1 0
1 2
2 1
2 3
3 2
3 4
4 3
4 5
5 4
5 0
0 5
5 1
1 5
4 1
1 4

 library(igraph)

 
 n <- 10000
 
 numVertices <- 4
 malha <- read.graph("~/graph2.txt", format="edgelist", n = numVertices, 
directed = TRUE)
 E(malha)$weight <- c(400, 400, 500, 450, 90, 120, 70, 80, 50, 30, 300, 200, 
15, 20, 15, 10)
 
 # Visualizar grafo
 plot(malha, edge.label=E(malha)$weight)
 
 # Pegar arestas do grafo
 edges <- get.edgelist(malha)
 numArestas <- dim(edges)[1]

 edge.betweenness(malha)
_______________________________________________
igraph-help mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/igraph-help

Reply via email to