Hi,

I’m using the cluster_edge_betweenness function to community detection because it fit with my weighted directed multiple net.

I run the code bellow:

com<-cluster_edge_betweenness(net, directed = TRUE, weights =E(net)$weight, edge.betweenness = TRUE, merges = TRUE, bridges = TRUE, modularity = TRUE, membership = TRUE)

But i get the following warning message:

2: In cluster_edge_betweenness(net, directed = TRUE, weights = E(net)$weight, :

At community.c:467 :Modularity calculation with weighted edge betweenness community detection might not make sense – modularity treats edge weights as similarities while edge betwenness treats them as distances.

I don´t understand if I shoud still using this algorithm for directed weighted nets. What should I do in this case?

Any help is appreciated!