Hi, I have been working on community detection so far.
My purpose is to apply betweenness centrality and eigenvector centrality.
However, when I applied cluster_edge_betweenness and cluster_leading_eigen function they produced the same result. Even membership vectors are also identical. Then I suspected that I used functions wrongly, but when I tried with the “karate” dataset it worked well. Two functions generated different results. Could anyone explain why while I am passing my data to these functions, they are giving the same result?. Here is my data and source code:
adj_mat_users.csv (1.1 MB)
train_network <- graph_from_adjacency_matrix(adj_mat_users,
mode = "undirected",
weighted = NULL,
diag = FALSE)
train_community_eigen <- cluster_leading_eigen(train_network)
train_community_edge <- cluster_edge_betweenness(train_network)