pub enum GreedyColoringHeuristic {
ColoredNeighbors,
DSatur,
}Expand description
Heuristic ordering strategy for vertex_coloring_greedy.
Variants§
ColoredNeighbors
Choose the uncolored vertex with the most already-colored neighbors. Faster but typically uses more colors than DSATUR.
DSatur
Choose the uncolored vertex with the highest saturation degree (number of distinct colors among neighbors), breaking ties by degree in the uncolored subgraph. Generally produces better (fewer-color) results.
Trait Implementations§
Source§impl Clone for GreedyColoringHeuristic
impl Clone for GreedyColoringHeuristic
Source§fn clone(&self) -> GreedyColoringHeuristic
fn clone(&self) -> GreedyColoringHeuristic
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 GreedyColoringHeuristic
impl Debug for GreedyColoringHeuristic
Source§impl PartialEq for GreedyColoringHeuristic
impl PartialEq for GreedyColoringHeuristic
impl Copy for GreedyColoringHeuristic
impl Eq for GreedyColoringHeuristic
impl StructuralPartialEq for GreedyColoringHeuristic
Auto Trait Implementations§
impl Freeze for GreedyColoringHeuristic
impl RefUnwindSafe for GreedyColoringHeuristic
impl Send for GreedyColoringHeuristic
impl Sync for GreedyColoringHeuristic
impl Unpin for GreedyColoringHeuristic
impl UnsafeUnpin for GreedyColoringHeuristic
impl UnwindSafe for GreedyColoringHeuristic
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