benmaier / netwulf

Interactive visualization of networks based on Ulf Aslak's d3 web app.
MIT License
294 stars 26 forks source link

ntwulf.visualize does not accept network as a dict #41

Open ramadap opened 4 years ago

ramadap commented 4 years ago

Although stated in the documentation that the network can be provided as a Dict, it fails with message "Netwulf only supports nx.Graph, nx.DiGraph, and nx.MultiDiGraph".

ulfaslak commented 4 years ago

Ah! Seems you are right. We will fix this.

ghost commented 4 years ago

Hey, I'm also running into this issue. I was wondering when we can expect an update?

ulfaslak commented 4 years ago

I am overburdened with research obligations right now, but if this troubles you significantly go ahead and make a pull request.

As a guide, the issue is due to lines 271-279 in interactive.py. You just need to rewrite that bit so it handles network being a node-link dictionary.

benmaier commented 4 years ago

on it

benmaier commented 4 years ago

should be fixed now in v0.1.5