GtBridge.DepGraph (gt_bridge v0.17.3)

Copy Markdown View Source

I expose application-level dependency graph queries to GT.

All queries skip infrastructure apps (:kernel, :stdlib, :elixir, :compiler, :logger) so the graph stays focused on the user's apps and their transitive dependencies.

Summary

Functions

I return a dependency tree rooted at an application.

I return a reverse dependency tree — who depends on this app.

I return root applications — apps not depended on by any other loaded app.

Functions

app_dep_tree(app)

@spec app_dep_tree(atom()) :: map()

I return a dependency tree rooted at an application.

Each node has :name and :children. Transitive deps already reachable through a child are pruned. Cycles are broken by not revisiting already-seen apps.

app_reverse_dep_tree(app)

@spec app_reverse_dep_tree(atom()) :: map()

I return a reverse dependency tree — who depends on this app.

Each node has :name and :children (apps that depend on it).

root_apps()

@spec root_apps() :: [atom()]

I return root applications — apps not depended on by any other loaded app.