vtraag / louvain-igraph

Implementation of the Louvain algorithm for community detection with various methods for use with igraph in python.
GNU General Public License v3.0
246 stars 46 forks source link

module 'louvain' has no attribute 'RBConfigurationVertexPartitionWeightedLayers #60

Closed samansarraf closed 2 years ago

samansarraf commented 2 years ago

I am trying louvain version 0.7.1 for multilayer networks. I have installed the repo using pip install louvain . I am getting an error saying louvain has no attribute RBConfigurationVertexPartitionWeightedLayers . Could you please point me what version and how I need to install? AttributeError: module 'louvain' has no attribute 'RBConfigurationVertexPartitionWeightedLayers'

import louvain
louvain.__version__
'0.7.1'
vtraag commented 2 years ago

That is correct, there is no RBConfigurationVertexPartitionWeightedLayers, you probably meant to use RBConfigurationVertexPartition. I'll close this for now, but if there's another problem, feel free to re-open and please post a minimal reproducible example to illustrate the problem.

I strongly recommend to upgrade to the leidenalg package instead of using the louvain package.

samansarraf commented 2 years ago

That is correct, there is no RBConfigurationVertexPartitionWeightedLayers, you probably meant to use RBConfigurationVertexPartition. I'll close this for now, but if there's another problem, feel free to re-open and please post a minimal reproducible example to illustrate the problem.

I strongly recommend to upgrade to the leidenalg package instead of using the louvain package.

Thanks for the note . How can I get this version ? It seems there are C++ files in that version. Thanks !

include/RBConfigurationVertexPartitionWeightedLayers.h
include/RBConfigurationVertexPartitionWeightedLayers.cpp