Struct flag_algebra::flags::Colored
source · pub struct Colored<F, const N: u8> {
pub content: F,
pub color: Vec<u8>,
}Expand description
A type for colored flags
Fields§
§content: F§color: Vec<u8>Implementations§
Trait Implementations§
source§impl<F, const N: u8> Canonize for Colored<F, N>where
F: Flag,
impl<F, const N: u8> Canonize for Colored<F, N>where F: Flag,
source§fn invariant_neighborhood(&self, v: usize) -> Vec<Vec<usize>>
fn invariant_neighborhood(&self, v: usize) -> Vec<Vec<usize>>
Return lists of vertices that are invariant isomorphism. Read more
source§fn invariant_coloring(&self) -> Option<Vec<u64>>
fn invariant_coloring(&self) -> Option<Vec<u64>>
Optionally returns a value for each node that is invariant by isomorphism. Read more
source§fn apply_morphism(&self, p: &[usize]) -> Self
fn apply_morphism(&self, p: &[usize]) -> Self
Return the result of the action of a permuation
p on the object. Read moresource§fn canonical_typed(&self, sigma: usize) -> Self
fn canonical_typed(&self, sigma: usize) -> Self
The “typed” objects refers to the case where only
the action of permutations that are constant
on
0..sigma are considered. Read moresource§fn automorphisms(&self) -> AutomorphismIterator<Self>
fn automorphisms(&self) -> AutomorphismIterator<Self>
Iterator on the automorphism group of
g. Read moresource§fn stabilizer(&self, sigma: usize) -> AutomorphismIterator<Self>
fn stabilizer(&self, sigma: usize) -> AutomorphismIterator<Self>
source§impl<'de, F, const N: u8> Deserialize<'de> for Colored<F, N>where
F: Deserialize<'de>,
impl<'de, F, const N: u8> Deserialize<'de> for Colored<F, N>where F: Deserialize<'de>,
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<F, const N: u8> Flag for Colored<F, N>where
F: Flag,
impl<F, const N: u8> Flag for Colored<F, N>where F: Flag,
source§fn induce(&self, set: &[usize]) -> Self
fn induce(&self, set: &[usize]) -> Self
Returns the subflag induced by the vertices in the slice set.
source§fn size_zero_flags() -> Vec<Self>
fn size_zero_flags() -> Vec<Self>
Returns the set of all flags of size 0. Read more
source§fn superflags(&self) -> Vec<Self>
fn superflags(&self) -> Vec<Self>
source§const NAME: &'static str = "FIXME"
const NAME: &'static str = "FIXME"
A unique name for this type of flags. For instance “Graph”.
This nameis used for naming the associated data subdirectory.
source§const HEREDITARY: bool = F::HEREDITARY
const HEREDITARY: bool = F::HEREDITARY
Setting this parameter to
false deactivate checks that induced subflags exists.
Must be true in every classic case.source§fn generate_next(previous: &[Self]) -> Vec<Self>
fn generate_next(previous: &[Self]) -> Vec<Self>
Return the list of flags of size
self.size() + 1 that contain self
as an induced subflag reduced modulo isomorphism.source§fn generate(n: usize) -> Vec<Self>
fn generate(n: usize) -> Vec<Self>
Return the list of flags of size
n reduced modulo isomorphism.source§fn generate_typed_up(type_flag: &Self, g_vec: &[Self]) -> Vec<Self>
fn generate_typed_up(type_flag: &Self, g_vec: &[Self]) -> Vec<Self>
Return the list of flags of
g_vec that can be rooted on the
flag type_flag.
Each different way to root this flag give a different flag in the result.source§fn generate_typed(type_flag: &Self, size: usize) -> Vec<Self>
fn generate_typed(type_flag: &Self, size: usize) -> Vec<Self>
Return the list of flag of size
size rooted on type_flag
reduced modulo (typed) isomorphism.source§fn select_type(&self, eta: &[usize]) -> Self
fn select_type(&self, eta: &[usize]) -> Self
Reorder self so that the
eta.len() first vertices are the values
of eta in the corresponding order.source§impl<F: Ord, const N: u8> Ord for Colored<F, N>
impl<F: Ord, const N: u8> Ord for Colored<F, N>
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl<F: PartialEq, const N: u8> PartialEq<Colored<F, N>> for Colored<F, N>
impl<F: PartialEq, const N: u8> PartialEq<Colored<F, N>> for Colored<F, N>
source§impl<F: PartialOrd, const N: u8> PartialOrd<Colored<F, N>> for Colored<F, N>
impl<F: PartialOrd, const N: u8> PartialOrd<Colored<F, N>> for Colored<F, N>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moreimpl<F: Eq, const N: u8> Eq for Colored<F, N>
impl<F, const N: u8> StructuralEq for Colored<F, N>
impl<F, const N: u8> StructuralPartialEq for Colored<F, N>
Auto Trait Implementations§
impl<F, const N: u8> RefUnwindSafe for Colored<F, N>where F: RefUnwindSafe,
impl<F, const N: u8> Send for Colored<F, N>where F: Send,
impl<F, const N: u8> Sync for Colored<F, N>where F: Sync,
impl<F, const N: u8> Unpin for Colored<F, N>where F: Unpin,
impl<F, const N: u8> UnwindSafe for Colored<F, N>where F: 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
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).§unsafe fn to_subset_unchecked(&self) -> SS
unsafe fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.