[][src]Struct flag_algebra::flags::Digraph

pub struct Digraph {
    pub edge: AntiSym<Arc>,
    // some fields omitted
}

Directed graphs.

Fields

edge: AntiSym<Arc>

Flat matrix of arcs.

Methods

impl Digraph[src]

pub fn out_nbrs(&self, v: usize) -> Vec<usize>[src]

Out-neigborhood of v in self.

pub fn in_nbrs(&self, v: usize) -> Vec<usize>[src]

In-neigborhood of v in self.

pub fn new(n: usize, arcs: &[(usize, usize)]) -> Self[src]

Directed graph with n vertices and arcs arcs.

pub fn empty(n: usize) -> Self[src]

Directed graph with n vertices and no edge.

pub fn add_sink(&self) -> Self[src]

Directed graph obtained from self by adding a vertex and every edge from the rest of the graph to that vertex.

Trait Implementations

impl Flag for Digraph[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 SubFlag<Digraph> for TriangleFree[src]

impl Ord for Digraph[src]

fn max(self, other: Self) -> Self1.21.0[src]

Compares and returns the maximum of two values. Read more

fn min(self, other: Self) -> Self1.21.0[src]

Compares and returns the minimum of two values. Read more

fn clamp(self, min: Self, max: Self) -> Self[src]

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

Restrict a value to a certain interval. Read more

impl Clone for Digraph[src]

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

Performs copy-assignment from source. Read more

impl PartialEq<Digraph> for Digraph[src]

impl Eq for Digraph[src]

impl PartialOrd<Digraph> for Digraph[src]

impl Debug for Digraph[src]

impl Display for Digraph[src]

impl Serialize for Digraph[src]

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

impl Canonize for Digraph[src]

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

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

Auto Trait Implementations

impl Sync for Digraph

impl Unpin for Digraph

impl Send for Digraph

impl UnwindSafe for Digraph

impl RefUnwindSafe for Digraph

Blanket Implementations

impl<T> From<T> for T[src]

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

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

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

type Owned = T

The resulting type after obtaining ownership.

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.

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

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

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

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

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