pnnl / HyperNetX

Python package for hypergraph analysis and visualization.
https://hypernetx.readthedocs.io
Other
539 stars 92 forks source link

Not drawing the hypergraph #33

Closed ChrisGeorgakidis closed 3 years ago

ChrisGeorgakidis commented 4 years ago

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 commented 4 years ago

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

ChrisGeorgakidis commented 4 years ago

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

brendapraggastis commented 4 years ago

What version of numpy are you using?

brendapraggastis commented 4 years ago

We will push an update shortly that should fix this.

brendapraggastis commented 4 years ago

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 commented 4 years ago

ok. i will check out the new version

ChrisGeorgakidis commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

I have modified the python package in order to do that. If you want I can send you the function in order to integrate it into the master. If it is possible to add custom labels to the nodes, it would be great On 25 Jun 2020, 10:10 PM +0300, Brenda Praggastis notifications@github.com, wrote:

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 — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.

brendapraggastis commented 4 years ago

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!