Pygraphviz / networkx set node level or layer

后端 未结 2 1273
伪装坚强ぢ
伪装坚强ぢ 2020-12-16 06:01

I have a dataset that represents a kind of genealogy tree. Each node has 2 parents (except first generation, they have no parents). For a given node, its parents can be from

2条回答
  •  悲哀的现实
    2020-12-16 06:21

    As of 2017, the function to_agraph is no longer exposed at the nx.level. Now you must call nx.nx_agraph.to_agraph()

提交回复
热议问题