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

Orthogonal layout #16

Open
samiit opened this issue Oct 1, 2019 · 8 comments
Open

Orthogonal layout #16

samiit opened this issue Oct 1, 2019 · 8 comments

Comments

@samiit
Copy link

samiit commented Oct 1, 2019

Is there any way to render the network graph with orthogonal layout?

@paulbrodersen
Copy link
Owner

  1. What is an orthogonal layout?

  2. To answer your question: no, the only layout algorithm that I have implemented for the time being is Fruchtermann-Reingold. I do have plans to add more layout algorithms, so I am open to suggestions.

@paulbrodersen
Copy link
Owner

Is this what you are referring to?

@samiit
Copy link
Author

samiit commented Oct 2, 2019

Sorry @paulbrodersen for being ambiguous. I meant "orthogonal edge routing", something that is available in graphviz. The paper you pointed to is one of the latest contributions (thanks for sharing), but there have been attempts earlier (like, HOLA, and others).

@paulbrodersen
Copy link
Owner

I cannot find a standalone python implementation and I would rather not make graphviz a dependency of the project. If you have an implementation handy, I am open to working on integrating it into the module.
Otherwise, it will go onto list of planned features but won't be implemented any time soon.

@samiit
Copy link
Author

samiit commented Oct 2, 2019

Thanks for considering the request. I found an alternative in grandalf, specifically, its SugiyamaLayout, which did pretty much what I wanted.

@paulbrodersen
Copy link
Owner

The SugiyamaLayout is more akin to neato layout in graphviz, though, not the layout proposed in the HOLA paper -- isn't it?

@samiit
Copy link
Author

samiit commented Oct 3, 2019

Not sure about the neato layout, but surely it is far from the HOLA paper.

I did get some headway when I found the SnapPy project and found this code there. But I couldn't put it to good use, but am sure someone else can figure out what to do. Some classes that interested me (and may be you, if you would like to implement it in netgraph) would be OrthogonalRep, OrthogonalLinkDiagram, etc.

@paulbrodersen
Copy link
Owner

Thanks for the link, that is useful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants