[−][src]Struct generic_graph::adjacency_list::AdjacencyGraph
Methods
impl<K: Hash + Eq + Clone, V, W: Sum + Eq + Ord + Copy> AdjacencyGraph<K, V, W>
[src]
pub fn new() -> AdjacencyGraph<K, V, W>
[src]
Trait Implementations
impl<K: Hash + Eq + Clone, V, W: Sum + Eq + Ord + Copy> DirectedGraph<SimpleVertex<K, V>, DirectedEdge<K, W>, K, V, W, CompoundKey<K>> for AdjacencyGraph<K, V, W>
[src]
fn adjacent(&self, from: &K, to: &K) -> bool
[src]
fn neighbors(&self, from: &K) -> Vec<&K>
[src]
fn leading_to(&self, to: &K) -> Vec<&K>
[src]
fn get_vertex(&self, key: &K) -> Option<&SimpleVertex<K, V>>
[src]
fn get_mutable_vertex(&mut self, key: &K) -> Option<&mut SimpleVertex<K, V>>
[src]
fn get_edge(&self, pair: (&K, &K)) -> Option<&DirectedEdge<K, W>>
[src]
fn get_mutable_edge(
&mut self,
pair: (&K, &K)
) -> Option<&mut DirectedEdge<K, W>>
[src]
&mut self,
pair: (&K, &K)
) -> Option<&mut DirectedEdge<K, W>>
Auto Trait Implementations
impl<K, V, W> RefUnwindSafe for AdjacencyGraph<K, V, W> where
K: RefUnwindSafe,
V: RefUnwindSafe,
W: RefUnwindSafe,
K: RefUnwindSafe,
V: RefUnwindSafe,
W: RefUnwindSafe,
impl<K, V, W> Send for AdjacencyGraph<K, V, W> where
K: Send,
V: Send,
W: Send,
K: Send,
V: Send,
W: Send,
impl<K, V, W> Sync for AdjacencyGraph<K, V, W> where
K: Sync,
V: Sync,
W: Sync,
K: Sync,
V: Sync,
W: Sync,
impl<K, V, W> Unpin for AdjacencyGraph<K, V, W> where
K: Unpin,
V: Unpin,
W: Unpin,
K: Unpin,
V: Unpin,
W: Unpin,
impl<K, V, W> UnwindSafe for AdjacencyGraph<K, V, W> where
K: UnwindSafe,
V: UnwindSafe,
W: UnwindSafe,
K: UnwindSafe,
V: UnwindSafe,
W: 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>,