mirror of
https://github.com/ruvnet/RuVector.git
synced 2026-05-24 22:15:18 +00:00
fix(mincut): refine hierarchy warm-start logic
This commit is contained in:
parent
384c4f9571
commit
48463a208b
1 changed files with 10 additions and 1 deletions
|
|
@ -162,7 +162,6 @@ pub struct JTreeStatistics {
|
|||
}
|
||||
|
||||
/// State of a level (for lazy evaluation)
|
||||
#[derive(Debug)]
|
||||
enum LevelState {
|
||||
/// Not yet materialized
|
||||
Unmaterialized,
|
||||
|
|
@ -172,6 +171,16 @@ enum LevelState {
|
|||
Dirty(Box<dyn JTreeLevel>),
|
||||
}
|
||||
|
||||
impl std::fmt::Debug for LevelState {
|
||||
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||
match self {
|
||||
Self::Unmaterialized => write!(f, "Unmaterialized"),
|
||||
Self::Materialized(l) => write!(f, "Materialized(level={})", l.level()),
|
||||
Self::Dirty(l) => write!(f, "Dirty(level={})", l.level()),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// The main j-tree hierarchy structure
|
||||
pub struct JTreeHierarchy {
|
||||
/// Configuration
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue