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

Add arrows to edges for directed network graphs #2521

Closed
cacti77 opened this Issue Apr 4, 2018 · 6 comments

Comments

Projects
None yet
3 participants
@cacti77
Copy link

cacti77 commented Apr 4, 2018

I see an example of a network graph at http://holoviews.org/gallery/demos/bokeh/network_graph.html but the edges between the nodes are missing arrowheads. Is it possible (and preferably easy!) to display the edges as arrows in HoloViews?

I really want to be able to draw directed graphs like the D3 examples at https://bl.ocks.org/cjrd/6863459 and http://bl.ocks.org/rkirsling/5001347. But I'm struggling to find a Python visualization library that will allow me to do this.

@philippjfr philippjfr added the feature label Apr 4, 2018

@philippjfr

This comment has been minimized.

Copy link
Contributor

philippjfr commented Apr 4, 2018

Agreed it would be very nice if this supported. I think this is a good feature request and I've assigned it to the next release.

@philippjfr philippjfr added this to the v1.11 milestone Apr 4, 2018

@cacti77

This comment has been minimized.

Copy link
Author

cacti77 commented Apr 4, 2018

Thanks! FYI I've asked the same question of Bokeh too. I gave up trying to do it with Plotly!

@jlstevens

This comment has been minimized.

Copy link
Contributor

jlstevens commented Apr 4, 2018

I think this would be a very valuable feature.

For a second I was wondering if you could overlay a vectorfield to achieve this. Unfortunately, even if you were to try such a desperate workaround, I don't think you would have access to the concrete layout of the edges to put the little vectors in the right places...

@philippjfr

This comment has been minimized.

Copy link
Contributor

philippjfr commented Apr 4, 2018

I considered something similar, namely that VectorField already implements code to draw arrows using the multi_line glyph so we could easily port that code and use it to draw directed edges in Graph.

@philippjfr

This comment has been minimized.

Copy link
Contributor

philippjfr commented Nov 22, 2018

Graphs now support a directed plot option which adds arrows indicating the directionality.

@philippjfr philippjfr closed this Nov 22, 2018

@cacti77

This comment has been minimized.

Copy link
Author

cacti77 commented Nov 23, 2018

Thanks very much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.