From 18d7955b7d84c00467ede38baae53f4ce1fb6908 Mon Sep 17 00:00:00 2001 From: JSDurand Date: Fri, 20 Jan 2023 13:48:26 +0800 Subject: chain: a prototype is added. I have an ostensibly working prototype now. Further tests are needed to make sure that the algorithm meets the time complexity requirement, though. --- forest/src/lib.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'forest/src/lib.rs') diff --git a/forest/src/lib.rs b/forest/src/lib.rs index f843bc1..8c9b918 100644 --- a/forest/src/lib.rs +++ b/forest/src/lib.rs @@ -37,7 +37,7 @@ pub trait Forest: ParentsGraph + LabelGraph { F: AsRef; /// Extend the forest by adjoining another forest at a given node. - fn plant(&mut self, node_id: usize, fragment: F) -> Result<(), Self::Error> + fn plant(&mut self, node_id: usize, fragment: F, planted: bool) -> Result<(), Self::Error> where F: AsRef; @@ -54,3 +54,4 @@ pub trait Forest: ParentsGraph + LabelGraph { } pub mod default; +pub use default::Error; -- cgit v1.2.3-18-g5258