computeNCCD function
Return the normalized cumulative component dependency. This is the CCD divided by a CCD of a binary tree of the same size. If the NCCD is below 1.0, the graph is "horizontal". If the NCCD is above 1.0, the graph is "vertical". If the NCCD is above 2.0, the graph probably contains cycles. Lower is better.
Implementation
double computeNCCD(int ccd, int numNodes) => ccd / binaryTreeCCD(numNodes);