Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Py3lex library is not working properly #19

Open
Alex1235321 opened this issue May 15, 2023 · 8 comments
Open

Py3lex library is not working properly #19

Alex1235321 opened this issue May 15, 2023 · 8 comments

Comments

@Alex1235321
Copy link

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?

@jsnagai
Copy link
Collaborator

jsnagai commented May 17, 2023

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

@Alex1235321
Copy link
Author

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

@jsnagai
Copy link
Collaborator

jsnagai commented May 18, 2023

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
Copy link
Owner

SkBlaz commented May 19, 2023

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
Copy link
Owner

SkBlaz commented May 30, 2023

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

@jsnagai
Copy link
Collaborator

jsnagai commented May 31, 2023

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
Copy link
Owner

SkBlaz commented May 31, 2023 via email

@SkBlaz
Copy link
Owner

SkBlaz commented Jun 4, 2023

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants