#[non_exhaustive]pub enum GraphColourMethod {
Lazy,
LargestFirst,
Exhaustive,
}
Expand description
Available methods to perform graph colouring.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Lazy
Does not build the graph before performing the colouring; partitions while iterating through the Pauli tensors in the input order.
LargestFirst
Builds the graph and then greedily colours by iterating through the vertices, with the highest degree first.
Exhaustive
Builds the graph and then systematically checks all possibilities until it finds a colouring with the minimum possible number of colours. Such colourings need not be unique. Exponential time in the worst case, but often runs much faster.
Trait Implementations§
Source§impl Clone for GraphColourMethod
impl Clone for GraphColourMethod
Source§fn clone(&self) -> GraphColourMethod
fn clone(&self) -> GraphColourMethod
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 GraphColourMethod
impl Debug for GraphColourMethod
Source§impl Default for GraphColourMethod
impl Default for GraphColourMethod
Source§fn default() -> GraphColourMethod
fn default() -> GraphColourMethod
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for GraphColourMethod
impl<'de> Deserialize<'de> for GraphColourMethod
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for GraphColourMethod
impl PartialEq for GraphColourMethod
Source§impl Serialize for GraphColourMethod
impl Serialize for GraphColourMethod
impl StructuralPartialEq for GraphColourMethod
Auto Trait Implementations§
impl Freeze for GraphColourMethod
impl RefUnwindSafe for GraphColourMethod
impl Send for GraphColourMethod
impl Sync for GraphColourMethod
impl Unpin for GraphColourMethod
impl UnwindSafe for GraphColourMethod
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