pub struct TreeDecomp {
pub bags: Vec<Vec<usize>>,
pub tree_adj: Vec<Vec<usize>>,
pub root: usize,
}Expand description
Tree decomposition node: bags of vertex ids.
Fields§
§bags: Vec<Vec<usize>>bags[i] = set of vertices in bag i
tree_adj: Vec<Vec<usize>>adjacency in the decomposition tree
root: usizeroot of the tree decomposition
Implementations§
Trait Implementations§
Source§impl Clone for TreeDecomp
impl Clone for TreeDecomp
Source§fn clone(&self) -> TreeDecomp
fn clone(&self) -> TreeDecomp
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for TreeDecomp
impl RefUnwindSafe for TreeDecomp
impl Send for TreeDecomp
impl Sync for TreeDecomp
impl Unpin for TreeDecomp
impl UnsafeUnpin for TreeDecomp
impl UnwindSafe for TreeDecomp
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