Skip to main content

count_coupling_nodes

Function count_coupling_nodes 

pub fn count_coupling_nodes(db: &FactsDb, opts: &Options) -> Result<u64>
Expand description

Count the number of nodes in the behavioral coupling graph universe. Returns the count of distinct files in the same file_revs candidate set used by run_coupling — i.e. files with revs >= opts.min_revs after the configured --time-bucket / --use-canonical-lineage rewrite. Honours opts.max_changeset_size via the same good_commits pre-filter so isolated nodes inside large commits don’t inflate the denominator of density.

§Errors

Propagates DuckDB errors from the underlying query.