[−][src]Struct flag_algebra::flags::Graph
An undirected graph.
Implementations
impl Graph[src]
pub fn size(&self) -> usize[src]
Return the number of vertices in the graph
pub fn nbrs(&self, v: usize) -> Vec<usize>[src]
Return the vector of vertices adjacent to v.
pub fn new(n: usize, edge: &[(usize, usize)]) -> Self[src]
Create a graph on n vertices with edge set edge.
The vertices of this graph are 0,...,n-1.
pub fn empty(n: usize) -> Self[src]
Create the graph on n vertices with no edge.
pub fn edge(&self, u: usize, v: usize) -> bool[src]
Returns true id uv is an edge.
pub fn edges(&self) -> EdgeIterator<'_>ⓘNotable traits for EdgeIterator<'a>
impl<'a> Iterator for EdgeIterator<'a> type Item = (usize, usize);[src]
Notable traits for EdgeIterator<'a>
impl<'a> Iterator for EdgeIterator<'a> type Item = (usize, usize);pub fn connected(&self) -> bool[src]
Returns true if the graph is connected.
impl Graph[src]
pub fn petersen() -> Self[src]
pub fn clique(n: usize) -> Self[src]
pub fn cycle(n: usize) -> Self[src]
Trait Implementations
impl Canonize for Graph[src]
fn size(&self) -> usize[src]
fn invariant_neighborhood(&self, v: usize) -> Vec<Vec<usize>>[src]
fn apply_morphism(&self, p: &[usize]) -> Self[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>[src]
fn stabilizer(&self, sigma: usize) -> AutomorphismIterator<Self>[src]
impl Clone for Graph[src]
impl Debug for Graph[src]
impl<'de> Deserialize<'de> for Graph[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, [src]
__D: Deserializer<'de>,
impl Display for Graph[src]
impl Draw for Graph[src]
fn draw_with_parameters<C>(&self, col: C, type_size: usize) -> SVG where
C: FnMut(usize) -> usize, [src]
C: FnMut(usize) -> usize,
fn draw(&self) -> SVG[src]
fn draw_typed(&self, type_size: usize) -> SVG[src]
fn to_svg_file(&self, filename: &str)[src]
impl Eq for Graph[src]
impl Flag for Graph[src]
fn induce(&self, p: &[usize]) -> Self[src]
const NAME: &'static str[src]
fn size_zero_flags() -> Vec<Self>[src]
fn superflags(&self) -> Vec<Self>[src]
const HEREDITARY: bool[src]
fn generate_next(previous: &[Self]) -> Vec<Self>[src]
fn generate(n: usize) -> Vec<Self>[src]
fn generate_typed_up(type_flag: &Self, g_vec: &[Self]) -> Vec<Self>[src]
fn generate_typed(type_flag: &Self, size: usize) -> Vec<Self>[src]
fn select_type(&self, eta: &[usize]) -> Self[src]
impl Ord for Graph[src]
fn cmp(&self, other: &Graph) -> Ordering[src]
#[must_use]fn max(self, other: Self) -> Self1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self1.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 Serialize for Graph[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer, [src]
__S: Serializer,
impl StructuralEq for Graph[src]
impl StructuralPartialEq for Graph[src]
impl SubFlag<Graph> for Connected[src]
const SUBCLASS_NAME: &'static str[src]
const HEREDITARY: bool[src]
fn is_in_subclass(flag: &Graph) -> bool[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> DeserializeOwned for T where
T: for<'de> Deserialize<'de>, [src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T[src]
impl<F> Html for F where
F: Draw, [src]
F: Draw,
fn print_html<W>(&Self, &mut W) -> Result<(), Error> where
W: Write, [src]
W: Write,
const LATEX: bool[src]
fn html(&self, name: &str) -> Result<()>[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> Same<T> for T[src]
type Output = T
Should always be Self
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
SS: SubsetOf<SP>,
fn to_subset(&self) -> Option<SS>
fn is_in_subset(&self) -> bool
unsafe fn to_subset_unchecked(&self) -> SS
fn from_subset(element: &SS) -> SP
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> ToString for T where
T: Display + ?Sized, [src]
T: Display + ?Sized,
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,