[−][src]Struct labeledgraph::Graph
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]
V: Borrow<W>,
W: Eq + Hash,
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]
&mut self,
src: VertexIndex,
dst: VertexIndex
) -> Option<EdgeIndex>
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]
I: IntoIterator<Item = VertexIndex>,
pub fn are_vertices_parallel(
&self,
one: VertexIndex,
other: VertexIndex
) -> Option<bool>
[src]
&self,
one: VertexIndex,
other: VertexIndex
) -> Option<bool>
Auto Trait Implementations
impl<V> RefUnwindSafe for Graph<V> where
V: RefUnwindSafe,
V: RefUnwindSafe,
impl<V> Send for Graph<V> where
V: Send,
V: Send,
impl<V> Sync for Graph<V> where
V: Sync,
V: Sync,
impl<V> Unpin for Graph<V> where
V: Unpin,
V: Unpin,
impl<V> UnwindSafe for Graph<V> where
V: UnwindSafe,
V: UnwindSafe,
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> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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>,