pub struct EdgeColoring<N: Node> {
pub coloring: HashMap<(N, N), usize>,
pub num_colors: usize,
pub max_degree: usize,
pub is_class_one: bool,
}Expand description
Result of edge coloring
Fields§
§coloring: HashMap<(N, N), usize>The coloring: (source, target) -> color
num_colors: usizeNumber of colors used
max_degree: usizeMaximum degree (Vizing lower bound)
is_class_one: boolWhether the graph is class 1 (chi’ = Delta) or class 2 (chi’ = Delta + 1)
Trait Implementations§
Source§impl<N: Clone + Node> Clone for EdgeColoring<N>
impl<N: Clone + Node> Clone for EdgeColoring<N>
Source§fn clone(&self) -> EdgeColoring<N>
fn clone(&self) -> EdgeColoring<N>
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<N> Freeze for EdgeColoring<N>
impl<N> RefUnwindSafe for EdgeColoring<N>where
N: RefUnwindSafe,
impl<N> Send for EdgeColoring<N>
impl<N> Sync for EdgeColoring<N>
impl<N> Unpin for EdgeColoring<N>where
N: Unpin,
impl<N> UnsafeUnpin for EdgeColoring<N>
impl<N> UnwindSafe for EdgeColoring<N>where
N: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more