View source: R/k_functions_sf.R
randomize_distmatrix | R Documentation |
Randomize location of points on a network.
randomize_distmatrix(graph, edge_df, n, start_vert = NULL)
graph |
An graph object from igraph |
edge_df |
A DataFrame describing the edges |
n |
The number of point |
start_vert |
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
#This is an internal function, no example provided
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.