pub struct EdgeCapStats {
pub edges_before_cap: usize,
pub edges_after_cap: usize,
pub edges_dropped_by_cap: usize,
pub nodes_capped: usize,
pub max_out_edges_per_node: usize,
pub emissions_by_category: Vec<(EdgeCategory, u64, u64)>,
}Expand description
Statistics from the per-source out-edge cap that runs in
build_graph after apply_hub_suppression. Surfaced to Python
via LatencyBreakdown so calibration runs can quantify how often
the cap fires and how many edges it discards.
Fields§
§edges_before_cap: usizeEdge count after merge + hub suppression, before cap.
edges_after_cap: usizeEdge count after cap.
edges_dropped_by_cap: usizeEdges discarded by the cap (lowest-weight neighbors of overfull nodes).
nodes_capped: usizeNumber of source nodes that had > max_per_node outgoing edges
and therefore had their neighbor list truncated.
max_out_edges_per_node: usizeThe max_per_node value actually applied (after env-var override).
emissions_by_category: Vec<(EdgeCategory, u64, u64)>Per-category (raw emissions, first-seen deduped) counts from pass 1 of the two-pass edge build, sorted by category name. Names the builder category responsible for near-dense emission blowups (#116). Empty on the materialized-edge path.
Trait Implementations§
Source§impl Clone for EdgeCapStats
impl Clone for EdgeCapStats
Source§fn clone(&self) -> EdgeCapStats
fn clone(&self) -> EdgeCapStats
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Default for EdgeCapStats
impl Default for EdgeCapStats
Source§fn default() -> EdgeCapStats
fn default() -> EdgeCapStats
Auto Trait Implementations§
impl Freeze for EdgeCapStats
impl RefUnwindSafe for EdgeCapStats
impl Send for EdgeCapStats
impl Sync for EdgeCapStats
impl Unpin for EdgeCapStats
impl UnsafeUnpin for EdgeCapStats
impl UnwindSafe for EdgeCapStats
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more