admin管理员组

文章数量:1024635

I have a graphviz graph generated and I am using networkx to read that graph and assign them position values i.e nx.nx_pydot. The thing is the node values are very random like (1854,234) and so on. Is there any way i can get them to scale to to start from (0,0), (0,1) and so on?

original_pos=nx.nx_pydot.pydot_layout(graph,prog='dot')

I have a graphviz graph generated and I am using networkx to read that graph and assign them position values i.e nx.nx_pydot. The thing is the node values are very random like (1854,234) and so on. Is there any way i can get them to scale to to start from (0,0), (0,1) and so on?

original_pos=nx.nx_pydot.pydot_layout(graph,prog='dot')

本文标签: networkxGraphviz set positions to start from (00) and increment ny 1 unitStack Overflow