Skip to main content

Module centrality

Module centrality 

Source
Expand description

Pure in-degree centrality over Calls edges — shared by tour.rs (which uses it to rank entry points) and find_god_nodes (which surfaces it directly as named hub detection, GitCortex’s no-LLM answer to what other tools call “god object” / “god node” detection).

No clustering here — see clustering.rs for label-propagation community detection, which is a separate, coarser-grained signal.

Structs§

GodNode

Functions§

find_god_nodes
Find high-fan-in “hub” symbols — functions/methods many other symbols call into. Deterministic: ranked by in-degree descending, ties broken by qualified_name ascending, so re-running on the same indexed state always produces byte-identical output.
in_degree_by_calls
Count inbound Calls edges per destination node id. Shared by gitcortex-mcp (centrality/clustering/tour) and gitcortex-viz so both surfaces always use the same algorithm and cannot drift.