pub struct BipartitePartitions {
pub left: Vec<NodeId>,
pub right: Vec<NodeId>,
}Expand description
Result of a bipartite check: the two colour partitions.
left and right together contain every reachable node from the seed
used in is_bipartite.
Fields§
§left: Vec<NodeId>Nodes coloured 0.
right: Vec<NodeId>Nodes coloured 1.
Auto Trait Implementations§
impl Freeze for BipartitePartitions
impl RefUnwindSafe for BipartitePartitions
impl Send for BipartitePartitions
impl Sync for BipartitePartitions
impl Unpin for BipartitePartitions
impl UnwindSafe for BipartitePartitions
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