python-louvain icon indicating copy to clipboard operation
python-louvain copied to clipboard

Using with directed graph

Open jb110 opened this issue 5 years ago • 5 comments

Do you know how I would go about adapting this algorithm to directed networks? Or can it only be used on undirected networks?

jb110 avatar Sep 24 '18 13:09 jb110

Hello,

For the moment I have no plan to adapt to directed graphs.

Modularity meaning is not very clear for a directed graph and I do not know a "standard" implementation of Louvain algorithms on such graph. The usual way is to consider directed graph as undirected.

Best

taynaud avatar Oct 26 '18 12:10 taynaud

Hello @taynaud — could you please elaborate on why modularity meaning is not very clear for directed graphs? What is the controversy here?

Do you know of any methods for reliable community detection and modularity calculation on directed graphs?

deemeetree avatar Mar 31 '19 13:03 deemeetree

There's a way presented here: https://github.com/nicolasdugue/DirectedLouvain but they do not provide python implementation/interface to its solution.

They also made a few changes on the modularity function the algorithm use, and they have a paper about it: https://hal.archives-ouvertes.fr/hal-01231784

wilmeragsgh avatar Oct 10 '19 23:10 wilmeragsgh

would like to see more on this

DonaldTsang avatar Dec 10 '19 11:12 DonaldTsang

Related issue: https://github.com/taynaud/python-louvain/issues/58

taynaud avatar Apr 06 '20 11:04 taynaud