[][src]Struct cjdns_snode::pathsearch::dijkstra::Dijkstra

pub struct Dijkstra<T, W> {
    nodes: HashMap<T, Vec<(T, W)>>,
}

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]

pub fn new() -> Self[src]

Create new instance with empty graph.

Trait Implementations

impl<T, W> GraphBuilder<T, W> for Dijkstra<T, W> where
    T: Eq + Hash,
    W: PartialEq + PartialOrd + Zero
[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]

Auto Trait Implementations

impl<T, W> RefUnwindSafe for Dijkstra<T, W> where
    T: RefUnwindSafe,
    W: RefUnwindSafe

impl<T, W> Send for Dijkstra<T, W> where
    T: Send,
    W: Send

impl<T, W> Sync for Dijkstra<T, W> where
    T: Sync,
    W: Sync

impl<T, W> Unpin for Dijkstra<T, W> where
    T: Unpin,
    W: Unpin

impl<T, W> UnwindSafe for Dijkstra<T, W> where
    T: UnwindSafe,
    W: 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> Instrument for T[src]

impl<T> Instrument for T[src]

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

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]

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<V, T> VZip<V> for T where
    V: MultiLane<T>,