[][src]Function pathfinder::map::network::path

pub fn path<'a>(
    network: &'a Network<Node>,
    a: &str,
    b: &str,
    algorithm: &dyn Fn(&Network<Node>, Node, Node) -> Result<Vec<Node>>
) -> Result<Vec<Node>>

Paths between two different points that are connected.

Errors

The provided A and B don't exist in the network.

The path could not be found.