Skip to main content

run_analyze

Function run_analyze 

Source
pub fn run_analyze(
    cli: &Cli,
    path: Option<&str>,
    force: bool,
    threads: Option<usize>,
    label_budget: Option<u64>,
    density_threshold: Option<u64>,
    budget_exceeded_policy: Option<&str>,
    no_labels: bool,
) -> Result<()>
Expand description

Run the analyze command.

Builds precomputed graph analyses (CSR, SCC, Condensation DAG, 2-hop labels) and persists them to .sqry/analysis/ for fast query-time performance.

Analysis settings are resolved with precedence: CLI args > config file > env vars > compiled defaults.

ยงErrors

Returns an error if the graph cannot be loaded or analyses cannot be built.