computeCCD function

int computeCCD(
  1. Model model
)

Return the cumulative component dependency, which is the sum of all component dependencies. The CCD can be interpreted as the total "coupling" of the graph. Lower is better.

Implementation

int computeCCD(Model model) => model.nodes.values.sum((node) => node.cd!);