Trait cp_library_rs::graph::rerooting::TreeMonoid
source · pub trait TreeMonoid {
type T: Clone + Debug;
type W: Clone;
// Required methods
fn id() -> Self::T;
fn merge(x: &Self::T, y: &Self::T) -> Self::T;
fn put_edge(x: &Self::T, weight: &Self::W) -> Self::T;
}