pub trait Path: Copy + Clone { // Required methods fn default(weight: f64, index: usize) -> Self; fn aggregate(&mut self, other: Self); }