pub struct SparsifierStats {
pub edge_count: usize,
pub full_edge_count: usize,
pub vertex_count: usize,
pub compression_ratio: f64,
pub insertions: u64,
pub deletions: u64,
pub audit_count: u64,
pub audit_pass_count: u64,
pub local_rebuilds: u64,
pub full_rebuilds: u64,
pub updates_since_audit: u64,
}Expand description
Runtime statistics for the sparsifier.
Fields§
§edge_count: usizeNumber of edges in the current sparsifier.
full_edge_count: usizeNumber of edges in the full graph.
vertex_count: usizeNumber of vertices.
compression_ratio: f64Compression ratio: full_edge_count / edge_count.
insertions: u64Total number of edge insertions processed.
deletions: u64Total number of edge deletions processed.
audit_count: u64Total number of spectral audits performed.
audit_pass_count: u64Number of audits that passed.
local_rebuilds: u64Number of local rebuilds triggered.
full_rebuilds: u64Number of full rebuilds triggered.
updates_since_audit: u64Updates since the last audit.
Implementations§
Source§impl SparsifierStats
impl SparsifierStats
Sourcepub fn refresh_ratio(&mut self)
pub fn refresh_ratio(&mut self)
Recompute the compression ratio from current edge counts.
Trait Implementations§
Source§impl Clone for SparsifierStats
impl Clone for SparsifierStats
Source§fn clone(&self) -> SparsifierStats
fn clone(&self) -> SparsifierStats
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SparsifierStats
impl Debug for SparsifierStats
Source§impl Default for SparsifierStats
impl Default for SparsifierStats
Source§fn default() -> SparsifierStats
fn default() -> SparsifierStats
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SparsifierStats
impl<'de> Deserialize<'de> for SparsifierStats
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for SparsifierStats
impl RefUnwindSafe for SparsifierStats
impl Send for SparsifierStats
impl Sync for SparsifierStats
impl Unpin for SparsifierStats
impl UnsafeUnpin for SparsifierStats
impl UnwindSafe for SparsifierStats
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
Mutably borrows from an owned value. Read more
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>
Converts
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>
Converts
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