Closed SruthiHarish closed 3 years ago
The object G
is a networkx
object, not an igraph
object. In the most recent versions of igraph
, you can obtain an igraph
object using from_networkx
: G2 = igraph.Graph.from_networkx(G)
. You can then apply leidenalg.find_partition
to G2
instead of G
.
Thank you... solved...
Hai, I have tried Leiden package. When running it with the famous 'karate club' network, it produced an error like
Graph' object has no attribute 'vcount'
. What will be the reason?????