Nothing
frag.path.lengths <- function(graph, cumulative=FALSE){
# tests:
.check.frag.graph(graph)
# main function:
if(! is.logical(cumulative)) stop("The 'cumulative' parameter requires a logical value.")
path.vector <- igraph::distance_table(graph, directed = FALSE)$res
if(cumulative){
path.vector <- path.vector / max(path.vector)
}
path.vector
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.