pub struct TriangleCounterStats {
pub edges_processed: u64,
pub edges_sampled: u64,
pub sampled_triangles: usize,
pub estimated_triangles: f64,
pub sample_prob: f64,
pub memory_nodes: usize,
}Expand description
Statistics from a streaming triangle counter.
Fields§
§edges_processed: u64Total edges processed from the stream
edges_sampled: u64Number of edges retained in the sample
sampled_triangles: usizeTriangles found in the sample
estimated_triangles: f64Estimated total triangles (scaled)
sample_prob: f64Sampling probability used
memory_nodes: usizeNumber of nodes stored in memory
Trait Implementations§
Source§impl Clone for TriangleCounterStats
impl Clone for TriangleCounterStats
Source§fn clone(&self) -> TriangleCounterStats
fn clone(&self) -> TriangleCounterStats
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 moreAuto Trait Implementations§
impl Freeze for TriangleCounterStats
impl RefUnwindSafe for TriangleCounterStats
impl Send for TriangleCounterStats
impl Sync for TriangleCounterStats
impl Unpin for TriangleCounterStats
impl UnsafeUnpin for TriangleCounterStats
impl UnwindSafe for TriangleCounterStats
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> 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