simulation_square: Simulation square

Description Usage Arguments Examples

View source: R/simulation_square.R

Description

returns the shortest distance and plot it in a graph

Usage

1
simulation_square(graph,algorithm)

Arguments

graph

It returns the distance and the vertices of the shortest path.

algorithm

Dijkstra or BellmanFord

Examples

1
2
3
graph <- graph(n,nbPaths)
res <- Dijkstra(graph)
simulation_square(res,res$path)

Faheemah-p/ShortPath documentation built on Feb. 3, 2022, 7:20 p.m.