graphHeight

Computes the longest chain of production dependencies as a count of modules. This is the graph height used by the max-graph-height rule and is the primary constraint on build parallelism. Returns 0 when a cycle prevents a topological ordering. Only main edges are considered.