The Fractal Geometry of Software: What PyTorch and Ray's Dependency Cycles Reveal
Code search can find a function. Retrieval-augmented generation can retrieve relevant passages. Neither result, by itself, tells us how modules depend on one another.
That distinction matters. A codebase is not only a collection of text. It is also a directed structure: files import modules, modules connect to other modules, and some paths eventually lead back to where they began.
We extracted public Python import graphs for ten repositories and published the sanitized JSON in the Platino Labs Data Room . The graphs expose a structural fact that a passage search does not answer: the shape and scale of strongly connected components in the declared import graph.
From code retrieval to code structure
Retrieval systems and dependency graphs solve different problems. A retrieval system is designed to find text relevant to a query. An import graph records directed relationships declared by source code.…