benmaier / netwulf

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

is netwulf supports directed networkx ? #47

Closed zoldaten closed 3 years ago

zoldaten commented 3 years ago

hi! how to add arrows and weights to graph to visualize ?

benmaier commented 3 years ago

Arrows are not implemented yet, but on the list for v0.2. Weights are handled automatically, just add them to the edges with a "weight" keyword: https://netwulf.readthedocs.io/en/latest/visualization/init.html?highlight=weight#links

zoldaten commented 3 years ago

Ok, got it. But is it possible to show weight labels not only on plot in Jupyter but in visualization also ? Something like this: labels = nx.get_edge_attributes(G,'weight') nx.draw_networkx_edge_labels(G,pos,edge_labels=labels)

benmaier commented 3 years ago

not atm, no. @ulfaslak is there a feature like this planned for v0.2?

ulfaslak commented 3 years ago

Not a bad idea. Will add it to the to-do panel!