Pygraphviz / networkx set node level or layer
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 any previous generation. For example a node in generation n, can have a parent in n-1, and another parent in n-5. A node can be parent of several other nodes. So basically, for every node I know its generation and its parents. I am trying to represent this graph keeping the nodes from the same generation in the same line. Each generation has 10 nodes, except the first one. So far I am trying the "dot" layout. When I only