Closed SMTStuck closed 4 years ago
I believe , the SugiyamaScheme starts exploring depth first from nodes[0] and will reverse each edge that leads back to the visited ones. Maybe it is not the best approach but that is how it works. So, if you have a DAG, to avoid reversed edges add the nodes in the topological sort order.
Much appreciated.
I have a simple sample of three nodes and two edges, and am usinng only the core layout engine and doing all rendering myself.
The code below gives the following layout:
I've browsed the code to the best of my ability, but I cannot see anything that enforce a top to bottom layout as follows:
I know I can transform the graph, but I cannot do this unless the graph is always laid out bottom to top. So, is there a way to enforce the graph to always lay out top to bottom, or can I at least rely on the graph consistently being laid out bottom to top?
Thank you.
Accompanying code: