py3plex icon indicating copy to clipboard operation
py3plex copied to clipboard

Py3lex library is not working properly

Open Alex1235321 opened this issue 2 years ago • 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?

Alex1235321 avatar May 15 '23 14:05 Alex1235321

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

jsnagai avatar May 17 '23 12:05 jsnagai

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

Alex1235321 avatar May 17 '23 20:05 Alex1235321

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

jsnagai avatar May 18 '23 10:05 jsnagai

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 avatar May 19 '23 04:05 SkBlaz

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

SkBlaz avatar May 30 '23 16:05 SkBlaz

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

jsnagai avatar May 31 '23 09:05 jsnagai

Appreciate it!

On Wed, 31 May 2023, 11:38 James Nagai, @.***> wrote:

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

— Reply to this email directly, view it on GitHub https://github.com/SkBlaz/py3plex/issues/19#issuecomment-1569844334, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACMSERCTRWXT2VGFZ5RXGADXI4GP5ANCNFSM6AAAAAAYCJA5OA . You are receiving this because you were mentioned.Message ID: @.***>

SkBlaz avatar May 31 '23 14:05 SkBlaz

@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

SkBlaz avatar Jun 04 '23 07:06 SkBlaz