Is there a way to guarantee hierarchical output from NetworkX?

前端 未结 3 1427
不知归路
不知归路 2020-11-28 01:56

I\'m trying to produce a flow diagram of a tree structure. I\'ve been able to create representative graphs with networkx, but I need a way to show the

3条回答
  •  清酒与你
    2020-11-28 02:31

    You can use grandalf for a python-only solution, if you don't want to install graphviz.

    Also, this type of visualization is called a layered graph drawing or Sugiyama-style graph drawing, which can display many kinds of graphs, including non-trees.

    See my answer to a different question for details and implementation.

提交回复
热议问题