compute

Computes this metric over graph. Return system-wide and/or per-module values via MetricContribution. Must be pure and side-effect free; may return an empty contribution when the metric does not apply to a given graph.