Skip to content

Dependency graph

A typed, directed graph of MxlPy generated from the code (scripts/mxlgraph), extended by the planned APIs of open issues (graph/planned/*.pyi) and a capability map (graph/capabilities.yaml). It shows what currently depends on what, and what future functionality is likely to require. This page is a snapshot taken when these docs were built. uv run python scripts/graph.py serve opens the current state locally, and uv run python scripts/graph.py query … answers the same queries on the command line.

The viewer needs JavaScript.

Queries

Query Shows
X direct dependencies and dependents of X
deps X / rdeps X what X depends on / what depends on X (--depth N\|all, --edge a,b, --status code\|planned)
impact X everything that transitively depends on X, plus the tests and notebooks to rerun
path A B shortest dependency path from A to B
missing #266 capabilities an issue (or planned symbol) needs that no code provides yet
untested [prefix] public functions, methods and classes without a test referencing them
overview [package] packages (or the modules of one package) left to right from basic to high-level, layered by runtime imports, drawing only edges not implied by a longer path
dsm [package] dependency structure matrix in the same order: row depends on column, cells above the diagonal go against the layering
capabilities / issues the capability map / issue dependencies derived from the planned APIs
lint naming and typing convention conflicts across code and planned APIs

In overview, layer 0 holds the packages that import no other MxlPy package and every other package sits one layer right of the highest package it imports; members of an import cycle share a layer and are outlined red. Click a package to highlight everything it depends on (blue) and everything depending on it (orange), double-click to see its modules; "all package edges" in the filters draws every edge.

Names can be public paths (identify.fisher_information), unique suffixes (fisher_information), capabilities (cap:fim or fim) or issues (#260). Double-click a node to expand its neighbours.

Edge types

Edge Meaning
contains module → member, class → method
imports module → module (role type_checking for TYPE_CHECKING imports)
calls caller → callee (role reference when only passed around; confidence: low when matched by method name only)
uses_type symbol → class / type alias, role param, return, field, alias or runtime
inherits subclass → base class
implements class → Protocol / ABC (role structural when it only matches by member names)
provides symbol (or issue) → capability
requires_capability symbol → capability
tested_by symbol → test function
documented_in symbol → docs notebook
part_of planned symbol → issue
blocks issue → issue, derived from the planned APIs (role derived) or declared in a stub (role declared)

Dashed nodes and edges are planned; capabilities are green (implemented), amber (planned only) or red (no provider).