pub struct GraphCorefStats {
pub iterations: usize,
pub final_edges: usize,
pub num_clusters: usize,
pub num_chains: usize,
pub edge_history: Vec<usize>,
pub converged: bool,
pub early_stopped: bool,
pub cycle_detected: bool,
pub stagnation_detected: bool,
}Expand description
Statistics from a graph coref run for debugging and analysis.
Use GraphCoref::resolve_with_stats to get these alongside results.
Fields§
§iterations: usizeNumber of iterations until convergence (1 to max_iterations).
final_edges: usizeNumber of edges in final graph.
num_clusters: usizeNumber of clusters (including singletons).
num_chains: usizeNumber of non-singleton clusters.
edge_history: Vec<usize>Per-iteration edge counts, starting from 0.
converged: boolWhether the algorithm converged before max_iterations.
early_stopped: boolWhether we stopped early for a non-fixed-point reason (cycle/stagnation).
cycle_detected: boolCycle detected (graph fingerprint repeated).
stagnation_detected: boolStagnation detected (edge count stopped changing).
Trait Implementations§
Source§impl Clone for GraphCorefStats
impl Clone for GraphCorefStats
Source§fn clone(&self) -> GraphCorefStats
fn clone(&self) -> GraphCorefStats
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 GraphCorefStats
impl Debug for GraphCorefStats
Source§impl Default for GraphCorefStats
impl Default for GraphCorefStats
Source§fn default() -> GraphCorefStats
fn default() -> GraphCorefStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for GraphCorefStats
impl RefUnwindSafe for GraphCorefStats
impl Send for GraphCorefStats
impl Sync for GraphCorefStats
impl Unpin for GraphCorefStats
impl UnsafeUnpin for GraphCorefStats
impl UnwindSafe for GraphCorefStats
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