dijkstra: Shortest Path

Description Usage Arguments Value References Examples

Description

Shortest Path

Usage

1
dijkstra(graph, initial_node)

Arguments

graph

is A data frame

initial_node

is a number for starting nod

Value

the shortest path between the selected nod and all other nods

References

(https://en.wikipedia.org/wiki/Dijkstra

Examples

1
2
dijkstra (wiki_graph , 3)
dijkstra (wiki_graph , 5)

marma330/RPG documentation built on May 9, 2019, 5:52 a.m.