pub struct IndependentSubSet<M>where
M: MIntBase,{
pub n: usize,
pub ind: Vec<MInt<M>>,
}Fields§
§n: usize§ind: Vec<MInt<M>>Implementations§
Source§impl<M> IndependentSubSet<M>where
M: MIntBase,
impl<M> IndependentSubSet<M>where
M: MIntBase,
Sourcepub fn from_edges(n: usize, edges: &[(usize, usize)]) -> Self
pub fn from_edges(n: usize, edges: &[(usize, usize)]) -> Self
Sourcepub fn from_adj_graph(g: &[usize]) -> Self
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 for IndependentSubSet<M>
impl<M> 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