pub struct IndependentSubSet<M: MIntBase> {
pub n: usize,
pub ind: Vec<MInt<M>>,
}
Fields§
§n: usize
§ind: Vec<MInt<M>>
Implementations§
Source§impl<M: MIntBase> IndependentSubSet<M>
impl<M: MIntBase> IndependentSubSet<M>
pub fn from_adj_graph(g: &[usize]) -> Self
Sourcepub fn k_colorable(&self, k: usize) -> bool
pub fn k_colorable(&self, k: usize) -> bool
Sourcepub fn chromatic_number(&self) -> usize
pub fn chromatic_number(&self) -> usize
The smallest number of colors needed to color a graph.
Trait Implementations§
Source§impl<M: Clone + MIntBase> Clone for IndependentSubSet<M>
impl<M: Clone + MIntBase> Clone for IndependentSubSet<M>
Source§fn clone(&self) -> IndependentSubSet<M>
fn clone(&self) -> IndependentSubSet<M>
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<M> Freeze for IndependentSubSet<M>
impl<M> RefUnwindSafe for IndependentSubSet<M>
impl<M> Send for IndependentSubSet<M>
impl<M> Sync for IndependentSubSet<M>
impl<M> Unpin for IndependentSubSet<M>
impl<M> UnwindSafe for IndependentSubSet<M>
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