powered by
Randomize location of points on a network.
randomize_distmatrix2(graph, edge_df, n, resolution, nsim, start_vert = NULL)
An graph object from igraph
A DataFrame describing the edges
The number of point
The maximum size of the network edges
The number of distance matrices to generate
The vertices from which the distances will be calculated. if null, then the distances are calculated from the generated locations.
A numeric matrix with the distances between points
# NOT RUN { #This is an internal function, no example provided # }
Run the code above in your browser using DataLab