Skip to content

boevkoski/ensemble-louvain

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ensemble Louvain

Ensemble Louvain is a parallelized Python implementation of the community detection algorithm suitable for community evolution, presented and applied in the following works:

preview

Installation

Use the package manager pip to install elouvain.

pip install elouvain

Usage

from elouvain import ensemble_louvain
import networkx as nx

if __name__ == '__main__':
    G = nx.karate_club_graph() # create the well-known karate club network
    partition = ensemble_louvain.detect(G) # apply Ensemble Louvain on the graph
    partition[1] # get community label for node 1

License

MIT