pub struct Node {
pub par: Option<usize>,
pub children: Vec<usize>,
pub depth: usize,
pub subsize: usize,
}
Expand description
CentroidDecomposition
の頂点ノード
Fields§
§par: Option<usize>
親の頂点
children: Vec<usize>
子の頂点列
depth: usize
深さ
subsize: usize
部分木の大きさ
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Node
impl RefUnwindSafe for Node
impl Send for Node
impl Sync for Node
impl Unpin for Node
impl UnwindSafe for Node
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