Almost same results with/without weights
kalthwaini opened this issue · 1 comments
I'm experimenting the leidenalg community detection and have noticed that weights is not affecting the results? also i have inverted weights to double check and still, weights not doing a noticeable impact on the results. my cods:
optimiser = la.Optimiser()
optimiser.set_rng_seed(0)
partitions = la.ModularityVertexPartition(g, weights='weights')
diff = 1
_ = datetime.datetime.now().timestamp()
while diff > 0 and (datetime.datetime.now().timestamp() - _) < 30:
diff = optimiser.optimise_partition(partitions)
My question is: am I missing something?
Hi @kalthwaini
You're using the Python library. I think you want to open this issue at https://github.com/vtraag/leidenalg
This is a basic R package which accesses the C++ code.
Thanks, Evan