I have the following graph (and accompanying dot file)

digraph G {
a -> c;
a -> d;
a -> q;
a -> x;
a -> qp;
}
I want to organize the nodes in the graph "chess style view", like this:

How can this be achieved?
I have the following graph (and accompanying dot file)

digraph G {
a -> c;
a -> d;
a -> q;
a -> x;
a -> qp;
}
I want to organize the nodes in the graph "chess style view", like this:

How can this be achieved?
Copyright © 2021 Jogjafile Inc.
Depending on what exactly your finally after, an other layout algorithm could work for you:
The
unflattenutility may be a more appropriate solution in some cases: