Skip to main content

build_graph

Function build_graph 

Source
pub fn build_graph(root: &Path) -> Result<RepoGraph>
Expand description

Build a dependency graph from a repository root.

Walks the directory tree, parses each supported file with tree-sitter, extracts definitions and imports, resolves import paths to files, runs PageRank, and builds caller/callee lists.

§Errors

Returns an error if file walking or reading fails.