[][src]Struct flag_algebra::flags::Graph

pub struct Graph { /* fields omitted */ }

An undirected graph.

Methods

impl Graph
[src]

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)]) -> Graph
[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) -> Graph
[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 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 Flag for Graph
[src]

fn generate_next(previous: &[Self]) -> Vec<Self>
[src]

Return the list of flags of size self.size() + 1 that contain self as an induced subflag reduced modulo isomorphism. Read more

fn generate(n: usize) -> Vec<Self>
[src]

Return the list of flags of size n reduced modulo isomorphism.

fn generate_typed_up(type_flag: &Self, g_vec: &[Self]) -> Vec<Self>
[src]

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. Read more

fn generate_typed(type_flag: &Self, size: usize) -> Vec<Self>
[src]

Return the list of flag of size size rooted on type_flag reduced modulo (typed) isomorphism. Read more

fn select_type(&self, eta: &[usize]) -> Self
[src]

Reorder self so that the eta.len() first vertices are the values of eta in the corresonding order. Read more

impl PartialEq<Graph> for Graph
[src]

impl Eq for Graph
[src]

impl PartialOrd<Graph> for Graph
[src]

impl Ord for Graph
[src]

fn max(self, other: Self) -> Self
1.21.0
[src]

Compares and returns the maximum of two values. Read more

fn min(self, other: Self) -> Self
1.21.0
[src]

Compares and returns the minimum of two values. Read more

impl Clone for Graph
[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Display for Graph
[src]

impl Debug for Graph
[src]

impl Serialize for Graph
[src]

impl<'de> Deserialize<'de> for Graph
[src]

impl Canonize for Graph
[src]

fn invariant_coloring(&self) -> Option<Vec<u64>>
[src]

Can return a coloring that is invariant by isomorphism. Read more

Auto Trait Implementations

impl Send for Graph

impl Sync for Graph

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T> From for T
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<SS, SP> SupersetOf for SP where
    SS: SubsetOf<SP>, 

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]