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
Closed

Add arrows to edges for directed network graphs #2521

cacti77 opened this issue Apr 4, 2018 · 6 comments
Labels
type: feature A major new feature
Milestone

Comments

@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 type: feature A major new feature label Apr 4, 2018
@philippjfr
Copy link
Member

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
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
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
Copy link
Member

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
Copy link
Member

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

@cacti77
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
Labels
type: feature A major new feature
Projects
None yet
Development

No branches or pull requests

3 participants