Skip to content

pygraphviz_layout with fixed positions #7433

Answered by dschult
steven-bioinfo asked this question in Q&A
Discussion options

You must be logged in to vote

I think you are actually looking for a GraphViz feature... pygraphviz is a python interface to the GraphViz library.

It looks like adding a ! character to the existing pos string as described in the graphviz docs. Then the neato and fdp layout routines take the dot file and add positions to the nodes that don't have ! in their pos string. There are many other sources of info for how graphviz does layout that I'm not familiar with. That might be a direction to focus your search.

NetworkX's spring_layout allows you to fix some nodes (as you mention above).

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by rossbar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants