Closed JulienOx closed 3 years ago
Hi @JulienOx. Thanks for raising the issue in detail!. I will investigate and get back to you asap
Hello,
A quick fix was to remove the "zorder = 3" and the other two lines from the source code. Then everything works fine, but I seem to get slightly different results. I.E, in Example 1, for the Multiple core-periphery pairs, my graph is a bit different One of the green node is considered a core, where it is a periphery in the example. I doubt its related to this change with the zorders, but I still get the result after running the algo a couple of times. I don't think this is really relevant, as I don't really know what zorder does, even after looking at the source code for the networkx draw function.
This is due to the stochasticity of the algorithm, meaning it provides you different results in different runs. So I think the difference is not due to the changes you made.
If you want to ensure the results to be the same, you can set the seed for random number generated (like numpy.random.seed) or increase the number of runs by passing "num_runs" parameter by KM_config(num_runs = 50)
(num_runs=10 is the default)
I believe the bug is now fixed. Please upgrade the package (the version is changed from 0.0.17 to 0.0.18). Also, feel free to let us know if you still see the bug!
Thank you !
Not sure if this is related, but the examples don't seem to open on github anymore ?
From my side, I can see the notebook. Can you describe the issue in more detail?
all fixed now, not sure why it did that
Great!
So I managed to install cpnet. I then tried to run the example 1 to see if everything worked.
Everything does work until you try do draw the network using cpnet.draw().
TypeError Traceback (most recent call last)