modules-graph-assert icon indicating copy to clipboard operation
modules-graph-assert copied to clipboard

Graphviz: assign all leaf modules max rank

Open matejdro opened this issue 1 year ago • 0 comments

For example, for the following module graph:

digraph G {
":A" -> ":B"
":B" -> ":C"
":C" -> ":D"
":C" -> ":E"
":B" -> ":E"
":A" -> ":F"
":B" -> ":G"
}

image

It is not very easy to see which modules can be compiled concurrently, since leaves are scattered around the entire graph.

However, adding { rank=max; ":D"; ":E", ":G", ":F" } line to the generated graphviz makes this much better:

image

Now, we can clearly see that D, E, G and F will be compiled first, at the same time.

If accepted, I can add a PR for this.

matejdro avatar Mar 27 '24 07:03 matejdro