SkBlaz/py3plex

Py3lex library is not working properly

Opened this issue · 8 comments

I created a new project in Pycharm, after which I installed the Py3plex library and the corresponding libraries from the requirements.txt file, after which everything was fine at first glance, I decided to run the code from this link:
https://py3plex.readthedocs.io/en/latest/learning.html
But as a result, I got a completely different result:
https://ibb.co/tcLtWQv
and I'm not talking about interlayer edges, but about the fact that edges were not rendered in layers, an example of a smaller multilayer graph:
https://ibb.co/FzM67bC
Maybe someone knows what is the reason why the visualization does not work correctly?

Hi @ Alex1235321, fixing the detail in the draw_network part is necessary. It has to do with the updates in both networkx and Matplotlib. ping you here if i can fix it

I have matplotlib version 3.6.0.rc1 and networkX 2.8.8. if you are talking about it, if no, could you explain more specifically what is required of me so that I can give an opportunity to help me.
Maybe the problem is in today's schedule? "'NoneType' object is not subscriptable"
https://ibb.co/r2HDbhv
and PyCharm does not like these two points:
https://ibb.co/bWmsv9Q
https://ibb.co/n15K0Zv

Hey @Alex1235321, that is not exactly what I meant, if you take some time and read the code (as one should), you'd realize that the code here was build-inspired in the previous NetworkX versions.

For the undirected version, there is a local fix here(my end only atm)

https://github.com/jsnagai/py3plex/tree/master

ER_multilayer = random_generators.random_multilayer_ER(200,2,0.09,directed=False)
ER_multilayer.visualize_network(show=True, no_labels = True,alphachannel=0.03)

For the directed case, this seems a bit more cumbersome to update perhaps one can take a look on it

Note that I'm just a community-sided contributor and the more advanced questions and also work was done by @SkBlaz and collabs.

Hope we can keep that cool library updated,

Cheers

SkBlaz commented

Hey, thanks for noticing this. If your fix for undir in general, feel free to PR, will check dir case asap (unless you get to it first of course - as mentioned, update should be straightforward but cumbersome)

SkBlaz commented

@jsnagai added you as a collaborator, should you take steps before I get to that

tysm SkBlaz, im a bit busy with other projects on my Ph.D. but I can try to check that as soon as I have some spare time.

Best

SkBlaz commented
SkBlaz commented

@Alex1235321 -> could you please retry with py3plex==0.95 -> current builds most likely failed due to nx's breaking changes that are a separate issue alltogether