Struct lctree::LinkCutTree
source · pub struct LinkCutTree<T: Path> { /* private fields */ }Implementations§
source§impl<T: Path> LinkCutTree<T>
impl<T: Path> LinkCutTree<T>
pub fn new() -> Self
pub fn make_tree(&mut self, weight: f64) -> usize
sourcepub fn connected(&mut self, v: usize, w: usize) -> bool
pub fn connected(&mut self, v: usize, w: usize) -> bool
Checks if v and w are connected in the forest.
sourcepub fn link(&mut self, v: usize, w: usize)
pub fn link(&mut self, v: usize, w: usize)
Creates a link between two nodes in the forest (where w is the parent of v).
Trait Implementations§
Auto Trait Implementations§
impl<T> RefUnwindSafe for LinkCutTree<T>where T: RefUnwindSafe,
impl<T> Send for LinkCutTree<T>where T: Send,
impl<T> Sync for LinkCutTree<T>where T: Sync,
impl<T> Unpin for LinkCutTree<T>where T: Unpin,
impl<T> UnwindSafe for LinkCutTree<T>where T: UnwindSafe,
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