graph_square: Construction of a graph on a square [0,1] * [0,1]

Description Usage Arguments Examples

View source: R/graph_square.R

Description

graph_square returns the coordinates of the vertices 2D between 0 and 1 as well as the edges with their weight

Usage

1
graph_square(n,nbPaths)

Arguments

n

number of vertices

nbPaths

number of possible paths from the start to the end

Examples

1
2
3
graph_square(n=100,nbPaths=20)
graph_square(n=1000,nbPaths=50) 
graph_square(20,5)

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