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

Not drawing the hypergraph #33

Closed
ChrisGeorgakidis opened this issue May 24, 2020 · 10 comments
Closed

Not drawing the hypergraph #33

ChrisGeorgakidis opened this issue May 24, 2020 · 10 comments
Assignees

Comments

@ChrisGeorgakidis
Copy link

I tried the programs in the tutorial and also the code of the guy that reported the other issue and i get the following error:

/usr/local/lib/python3.7/site-packages/hypernetx/drawing/rubber_band.py:97: FutureWarning: arrays to stack must be passed as a "sequence" type such as list or tuple. Support for non-sequence iterables such as generators is deprecated as of NumPy 1.16 and will raise an error in the future.

I don't know if the problem is that I use python3

@brendapraggastis
Copy link
Collaborator

This is a warning that we will address in a future release. Is the warning preventing you from running the tutorial?

@ChrisGeorgakidis
Copy link
Author

Exactly. I get this warning and after that the plot is not shown

@brendapraggastis
Copy link
Collaborator

What version of numpy are you using?

@brendapraggastis
Copy link
Collaborator

We will push an update shortly that should fix this.

@brendapraggastis
Copy link
Collaborator

An update to the drawing library has been pushed. The issue you reported should not have prevented the hypergraph from showing. Try pulling and let us know what happens.

@ChrisGeorgakidis
Copy link
Author

ok. i will check out the new version

@ChrisGeorgakidis
Copy link
Author

I used anaconda and worked. Maybe something is going wrong with my packages. I have also another question. Is it able to give custom labels to the edges or the nodes?

@brendapraggastis
Copy link
Collaborator

Hi @ChrisGeorgakidis ,
At present the displayed label is the uid of the Entity (Node or Edge) being displayed. Being able to change that might be a good feature. I will add that to our list of TODOs.
Thanks

@ChrisGeorgakidis
Copy link
Author

ChrisGeorgakidis commented Jun 26, 2020 via email

@brendapraggastis
Copy link
Collaborator

You should be able to make a pull request to the develop branch on pnnl/HyperNetX. I will review it with our developers and if it doesn't break anything we will see about integrating it into our code. Thanks!

bonicim pushed a commit that referenced this issue May 15, 2023
Merge in HYP/hypernetx from bugfix/entity-from-dict-tuple-keys to develop

* commit 'c80f303a5761cbff5a85854399b7df48243dc80e':
  correctly initialize Entity from a dict of iterables when keys/edge names are tuples (resolves error thrown in Tutorial 3 [HYP-286])
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