powered by
Create random coordinates for network vertexes
randomCoordinates(nNodes, xMax, xMin, yMax, yMin)
The number of vertexes/ nodes in the network
The maximum x-coordinate of the nodes in the network
The minimum x-coordinate of the nodes in the network
The maximum y-coordinate of the nodes in the network
The minimum y-coordinate of the nodes in the network
A data frame with dimensions nNodes x 2 containing the x and y coordinates of the network's vertexes
# NOT RUN { nNodes <- 10 xMax <- 2000 xMin <- 0 yMax <- 3000 yMin <- 200 randomCoordinates(nNodes, xMax, xMin, yMax, yMin) # }
Run the code above in your browser using DataLab