pub struct AnalysisConfig {Show 22 fields
pub enable_pagerank: bool,
pub enable_betweenness: bool,
pub enable_eigenvector: bool,
pub enable_hits: bool,
pub enable_cycles: bool,
pub enable_critical_path: bool,
pub enable_k_core: bool,
pub enable_articulation: bool,
pub enable_slack: bool,
pub betweenness_max_nodes: usize,
pub eigenvector_max_nodes: usize,
pub betweenness_is_approximate: bool,
pub betweenness_mode: &'static str,
pub betweenness_skip_reason: &'static str,
pub betweenness_timeout_ns: u64,
pub pagerank_skip_reason: &'static str,
pub pagerank_timeout_ns: u64,
pub hits_skip_reason: &'static str,
pub hits_timeout_ns: u64,
pub cycles_skip_reason: &'static str,
pub cycles_timeout_ns: u64,
pub max_cycles_to_store: usize,
}Expand description
Configuration controlling which graph metrics are computed and their resource bounds.
Fields§
§enable_pagerank: bool§enable_betweenness: bool§enable_eigenvector: bool§enable_hits: bool§enable_cycles: bool§enable_critical_path: bool§enable_k_core: bool§enable_articulation: bool§enable_slack: bool§betweenness_max_nodes: usizeSkip betweenness for graphs exceeding this node count (expensive: O(V*E)).
eigenvector_max_nodes: usizeSkip eigenvector for graphs exceeding this node count.
betweenness_is_approximate: bool§betweenness_mode: &'static str§betweenness_skip_reason: &'static str§betweenness_timeout_ns: u64§pagerank_skip_reason: &'static str§pagerank_timeout_ns: u64§hits_skip_reason: &'static str§hits_timeout_ns: u64§cycles_skip_reason: &'static str§cycles_timeout_ns: u64§max_cycles_to_store: usizeImplementations§
Source§impl AnalysisConfig
impl AnalysisConfig
Sourcepub const BACKGROUND_THRESHOLD: usize = 200
pub const BACKGROUND_THRESHOLD: usize = 200
Default node-count threshold above which background computation is used.
Sourcepub const fn full() -> Self
pub const fn full() -> Self
All metrics enabled, generous size limits (matches current behavior).
Sourcepub const fn triage_only() -> Self
pub const fn triage_only() -> Self
Minimal config for triage scoring (only PageRank + betweenness + basic).
Sourcepub const fn triage_runtime() -> Self
pub const fn triage_runtime() -> Self
Runtime config for triage-oriented commands.
Keeps exactly the metrics consumed by triage/plan/priority flows while skipping metrics only used by richer insight surfaces.
Sourcepub const fn fast_phase() -> Self
pub const fn fast_phase() -> Self
Fast phase: only O(V+E) metrics — returned immediately.
Defers betweenness (O(VE)), eigenvector (O(VE) iterative), and HITS (O(V*E) iterative) to a background thread.
Sourcepub const fn slow_phase() -> Self
pub const fn slow_phase() -> Self
Slow phase: only the expensive O(V*E) metrics.
Sourcepub fn background_threshold() -> usize
pub fn background_threshold() -> usize
Read the background threshold from BVR_BACKGROUND_THRESHOLD env var,
falling back to Self::BACKGROUND_THRESHOLD if unset or invalid.
Trait Implementations§
Source§impl Clone for AnalysisConfig
impl Clone for AnalysisConfig
Source§fn clone(&self) -> AnalysisConfig
fn clone(&self) -> AnalysisConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more