[][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 size(&self) -> usize[src]

Number of vertices

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]

impl SubFlag<Digraph> for TriangleFree[src]

impl Clone for Digraph[src]

impl Eq for Digraph[src]

impl Ord for Digraph[src]

impl PartialEq<Digraph> for Digraph[src]

impl PartialOrd<Digraph> for Digraph[src]

impl Display for Digraph[src]

impl Debug for Digraph[src]

impl StructuralPartialEq for Digraph[src]

impl StructuralEq for Digraph[src]

impl Serialize for Digraph[src]

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

impl Canonize for Digraph[src]

Auto Trait Implementations

impl Send for Digraph

impl Sync for Digraph

impl Unpin for Digraph

impl UnwindSafe for Digraph

impl RefUnwindSafe for Digraph

Blanket Implementations

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

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

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

type Owned = T

The resulting type after obtaining ownership.

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

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]

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

type Output = T

Should always be Self

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,