Skip to content

Lab 1 — Dependency & Metric Analysis

Goal

Build a structural model of a real codebase and use it to test a design hypothesis.

Tasks

  1. Parse classes/modules and dependencies.
  2. Construct a directed graph.
  3. Compute at least: in-degree, out-degree, cycles/SCCs, and one cohesion/coupling metric.
  4. Visualize or export the top structural anomalies.
  5. Manually inspect five cases.
  6. Write a one-page interpretation explaining where the metrics are misleading.

Deliverables

  • analysis script/tool configuration;
  • machine-readable results;
  • short report with five inspected examples;
  • exact repository commit analyzed.