pub struct BipartiteResult {
pub is_bipartite: bool,
pub types: Vec<bool>,
}Expand description
Result of bipartiteness check.
Fields§
§is_bipartite: boolWhether the graph is bipartite.
types: Vec<bool>If bipartite, the partition assignment for each vertex.
types[v] is false for one side and true for the other.
Empty if is_bipartite is false.
Trait Implementations§
Source§impl Clone for BipartiteResult
impl Clone for BipartiteResult
Source§fn clone(&self) -> BipartiteResult
fn clone(&self) -> BipartiteResult
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 moreSource§impl Debug for BipartiteResult
impl Debug for BipartiteResult
Source§impl PartialEq for BipartiteResult
impl PartialEq for BipartiteResult
impl Eq for BipartiteResult
impl StructuralPartialEq for BipartiteResult
Auto Trait Implementations§
impl Freeze for BipartiteResult
impl RefUnwindSafe for BipartiteResult
impl Send for BipartiteResult
impl Sync for BipartiteResult
impl Unpin for BipartiteResult
impl UnsafeUnpin for BipartiteResult
impl UnwindSafe for BipartiteResult
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