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
Milestone

Comments

@cacti77
Copy link

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

@philippjfr 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
Copy link
Author

@cacti77 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 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

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

@philippjfr 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
Copy link
Author

@cacti77 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
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants