[−][src]Struct canonical_form::example::Graph
Simple Graph implementation as adjacency lists
Implementations
impl Graph
[src]
pub fn new(n: usize, edges: &[(usize, usize)]) -> Self
[src]
Create a graph of size n
with the edges in edges
Trait Implementations
impl Canonize for Graph
[src]
fn size(&self) -> usize
[src]
fn apply_morphism(&self, perm: &[usize]) -> Self
[src]
fn invariant_neighborhood(&self, u: usize) -> Vec<Vec<usize>>
[src]
fn invariant_coloring(&self) -> Option<Vec<u64>>
[src]
fn canonical(&self) -> Self
[src]
fn canonical_typed(&self, sigma: usize) -> Self
[src]
fn morphism_to_canonical(&self) -> Vec<usize>
[src]
fn morphism_to_canonical_typed(&self, sigma: usize) -> Vec<usize>
[src]
fn automorphisms(&self) -> AutomorphismIterator<Self>ⓘNotable traits for AutomorphismIterator<F>
impl<F: Canonize> Iterator for AutomorphismIterator<F> type Item = Vec<usize>;
[src]
Notable traits for AutomorphismIterator<F>
impl<F: Canonize> Iterator for AutomorphismIterator<F> type Item = Vec<usize>;
fn stabilizer(&self, sigma: usize) -> AutomorphismIterator<Self>ⓘNotable traits for AutomorphismIterator<F>
impl<F: Canonize> Iterator for AutomorphismIterator<F> type Item = Vec<usize>;
[src]
Notable traits for AutomorphismIterator<F>
impl<F: Canonize> Iterator for AutomorphismIterator<F> type Item = Vec<usize>;
impl Clone for Graph
[src]
impl Debug for Graph
[src]
impl Eq for Graph
[src]
impl Ord for Graph
[src]
fn cmp(&self, other: &Graph) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<Graph> for Graph
[src]
impl PartialOrd<Graph> for Graph
[src]
fn partial_cmp(&self, other: &Graph) -> Option<Ordering>
[src]
fn lt(&self, other: &Graph) -> bool
[src]
fn le(&self, other: &Graph) -> bool
[src]
fn gt(&self, other: &Graph) -> bool
[src]
fn ge(&self, other: &Graph) -> bool
[src]
impl StructuralEq for Graph
[src]
impl StructuralPartialEq for Graph
[src]
Auto Trait Implementations
impl RefUnwindSafe for Graph
impl Send for Graph
impl Sync for Graph
impl Unpin for Graph
impl UnwindSafe for Graph
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,