pub enum ColoringGreedy {
ColoredNeighbors,
DSatur,
}Expand description
Vertex ordering heuristic of Graph::vertex_coloring_greedy
(igraph_coloring_greedy_t).
Variants§
ColoredNeighbors
Start from a vertex of maximum degree, then color next the vertex
with the largest number of already colored neighbors
(IGRAPH_COLORING_GREEDY_COLORED_NEIGHBORS). Both counts include
multi-edges with their multiplicity.
DSatur
Color next the vertex with the largest number of distinct colors
in its neighborhood (its saturation degree), breaking ties by the
number of uncolored neighbors (IGRAPH_COLORING_GREEDY_DSATUR).
This is Brélaz’s DSatur heuristic (Commun. ACM 22(4), 1979,
https://doi.org/10.1145/359094.359101); it is exact on bipartite
graphs, cycles and wheels.
Trait Implementations§
Source§impl Clone for ColoringGreedy
impl Clone for ColoringGreedy
Source§fn clone(&self) -> ColoringGreedy
fn clone(&self) -> ColoringGreedy
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ColoringGreedy
Source§impl Debug for ColoringGreedy
impl Debug for ColoringGreedy
Source§impl Default for ColoringGreedy
impl Default for ColoringGreedy
Source§fn default() -> Self
fn default() -> Self
ColoringGreedy::ColoredNeighbors, igraph’s historical default.
impl Eq for ColoringGreedy
Source§impl From<ColoringGreedy> for igraph_coloring_greedy_t
impl From<ColoringGreedy> for igraph_coloring_greedy_t
Source§fn from(value: ColoringGreedy) -> igraph_coloring_greedy_t
fn from(value: ColoringGreedy) -> igraph_coloring_greedy_t
Converts to this type from the input type.
Source§impl Hash for ColoringGreedy
impl Hash for ColoringGreedy
Source§impl PartialEq for ColoringGreedy
impl PartialEq for ColoringGreedy
Source§fn eq(&self, other: &ColoringGreedy) -> bool
fn eq(&self, other: &ColoringGreedy) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ColoringGreedy
Auto Trait Implementations§
impl Freeze for ColoringGreedy
impl RefUnwindSafe for ColoringGreedy
impl Send for ColoringGreedy
impl Sync for ColoringGreedy
impl Unpin for ColoringGreedy
impl UnsafeUnpin for ColoringGreedy
impl UnwindSafe for ColoringGreedy
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