powered by
Randomize location of points on a network.
randomize_distmatrix(graph, edge_df, n, start_vert = NULL)
An graph object from igraph
A DataFrame describing the edges
The number of point
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