[−][src]Struct cjdns_snode::pathsearch::dijkstra::Dijkstra
Dijkstra path search.
Fields
nodes: HashMap<T, Vec<(T, W)>>
Links node with tag <T>
to the list of ajacent nodest with corresponding weights <W>
.
Implementations
impl<T, W> Dijkstra<T, W>
[src]
Trait Implementations
impl<T, W> GraphBuilder<T, W> for Dijkstra<T, W> where
T: Eq + Hash,
W: PartialEq + PartialOrd + Zero,
[src]
T: Eq + Hash,
W: PartialEq + PartialOrd + Zero,
fn add_node<I: IntoIterator<Item = (T, W)>>(&mut self, node_tag: T, links: I)
[src]
impl<T, W> GraphSolver<T, W> for Dijkstra<T, W> where
T: Clone + Eq + Ord + Hash,
W: Clone + PartialEq + PartialOrd + IntoOrd + Add<Output = W> + Zero,
[src]
T: Clone + Eq + Ord + Hash,
W: Clone + PartialEq + PartialOrd + IntoOrd + Add<Output = W> + Zero,
fn path(&self, from: &T, to: &T) -> Vec<T>
[src]
fn reverse_path(&self, from: &T, to: &T) -> Vec<T>
[src]
fn path_search_tree(&self, start: &T) -> PathSearchTree<T>
[src]
Auto Trait Implementations
impl<T, W> RefUnwindSafe for Dijkstra<T, W> where
T: RefUnwindSafe,
W: RefUnwindSafe,
T: RefUnwindSafe,
W: RefUnwindSafe,
impl<T, W> Send for Dijkstra<T, W> where
T: Send,
W: Send,
T: Send,
W: Send,
impl<T, W> Sync for Dijkstra<T, W> where
T: Sync,
W: Sync,
T: Sync,
W: Sync,
impl<T, W> Unpin for Dijkstra<T, W> where
T: Unpin,
W: Unpin,
T: Unpin,
W: Unpin,
impl<T, W> UnwindSafe for Dijkstra<T, W> where
T: UnwindSafe,
W: UnwindSafe,
T: 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,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
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.
pub 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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,