[][src]Struct competitive_hpp::dijkstra::Dijkstra

pub struct Dijkstra { /* fields omitted */ }

Dijkstra

Example:

use competitive_hpp::dijkstra::Dijkstra;
// edge: Vec<(from, to, cost)>
let edges: Vec<(usize, usize, i64)> = vec![(0, 1, 1),(0, 2, 6),(1, 3, 2)];

//Dijkstra::new(vertex num, edges, start vertex)
let dijkstra = Dijkstra::new(4, &edges, 0);

Methods

impl Dijkstra[src]

pub fn new(n: usize, edges: &[(usize, usize, i64)], start: usize) -> Self[src]

Trait Implementations

impl Clone for Dijkstra[src]

impl Debug for Dijkstra[src]

Auto Trait Implementations

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> Same<T> for T[src]

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.