[][src]Struct labeledgraph::Graph

pub struct Graph<V: Hash + Eq + Clone> { /* fields omitted */ }

Methods

impl<V: Eq + Hash + Clone> Graph<V>[src]

pub fn new() -> Self[src]

pub fn insert(&mut self, label: V) -> VertexIndex[src]

pub fn remove(&mut self, vertex: VertexIndex) -> bool[src]

pub fn posset<'a>(&'a self, vertex: VertexIndex) -> Option<VertexIter<'a>>[src]

pub fn preset<'a>(&'a self, vertex: VertexIndex) -> Option<VertexIter<'a>>[src]

pub fn indegree(&self, vertex: VertexIndex) -> Option<usize>[src]

pub fn outdegree(&self, vertex: VertexIndex) -> Option<usize>[src]

pub fn get<'a, 'b, W: ?Sized>(&'a self, label: &'b W) -> Option<VertexIter<'a>> where
    V: Borrow<W>,
    W: Eq + Hash
[src]

pub fn labels<'a>(&'a self, vertex: VertexIndex) -> Option<LabelIter<'a, V>>[src]

pub fn count_labeled<W: Borrow<V>>(&self, label: &W) -> Option<usize>[src]

pub fn append_label(&mut self, vertex: VertexIndex, label: V) -> bool[src]

pub fn remove_vertex_label(&mut self, label: &V, vertex: VertexIndex) -> bool[src]

pub fn connect(
    &mut self,
    src: VertexIndex,
    dst: VertexIndex
) -> Option<EdgeIndex>
[src]

pub fn disconnect(&mut self, edge: EdgeIndex) -> bool[src]

pub fn trunks<'a>(&'a self) -> VertexIter<'a>[src]

pub fn leaves<'a>(&'a self) -> VertexIter<'a>[src]

pub fn merge_vertices<'a, I>(&mut self, vertices: I) -> VertexIndex where
    I: IntoIterator<Item = VertexIndex>, 
[src]

pub fn are_vertices_parallel(
    &self,
    one: VertexIndex,
    other: VertexIndex
) -> Option<bool>
[src]

Auto Trait Implementations

impl<V> RefUnwindSafe for Graph<V> where
    V: RefUnwindSafe

impl<V> Send for Graph<V> where
    V: Send

impl<V> Sync for Graph<V> where
    V: Sync

impl<V> Unpin for Graph<V> where
    V: Unpin

impl<V> UnwindSafe for Graph<V> where
    V: UnwindSafe

Blanket Implementations

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

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

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

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

impl<T, U> Into<U> for T where
    U: From<T>, 
[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.