This is the 3rd assignment of the course Advanced Programming in R at Linköping University in 2018.
Course information and all assignments can be found at https://www.ida.liu.se/~732A94/info/courseinfo.en.shtml.
The exercise for the 3rd assignment is to implement the euclidean and dijkstra algorithm.
The package can be downloaded from GitHub via R with:
devtools::install_github("flennic/advanced-r-programming-3")
library(euclid.dijkstra)
# Example for the euclidean algorithm
euclidean(20,50)
#> [1] 10
# Example for the Dijkstra Algorithm
dijkstra(wiki_graph, 3)
#> [1] 9 10 0 11 11 2