4 ms·
I do not understand how your proposal would help. Could you elaborate on it and provide an example or a quick sketch?
by erlehmann_ 10y ago
I do not understand how your proposal would help. Could you elaborate on it and provide an example or a quick sketch?
- PaulHoule 10y agoHow about this. Give the "product" (which has nothing depending on it) the number 0, then the number for anything else is the length of the longest chain of dependencies from the root to the dependency in question. You could put layer 0 on the far right, and then layer 1, layer 2 in vertical rows going to the left for instance. The important thing is that the arrows always point from right to left so they are not tangled. There are other ways you could assign dependencies to layers that might look better or be more informative but the "arrows always point the same way" property prevents tangling. Layout along the other axis is a different question, I'd imagine you could shuffle the vertical order of the dependencies in the layers to minimize the number of arrows that cross or something.
- erlehmann_ 10y agoThe graph is already layered. It is precisely the crossings that are the problem and minimizing them does not do a lot.