dijkstra: Takes a graph and an initial node and calculates the shortest...

Description Usage Arguments Value References Examples

Description

It is an algorithm used for finding the shortest path from a single node to a single destination node by stopping the algorithm onc e the shortest path to the destination node has been determined.

Usage

1
dijkstra(graph, init_node)

Arguments

graph

A data frame.

init_node

A number.

Value

The vector of the shortest path to every other node from the starting node.

References

Dijkstra

Examples

1
2

Philhoels/Lab3AdvR documentation built on May 9, 2019, 3:28 a.m.