graphDist <- function(A)
g <- graph.adjacency(Matrix(A, sparse=T), mode="undirected")
g <- igraph.to.graphNEL(g)
DIST <- as.dist(johnson.all.pairs.sp(g))
DIST <- 1/DIST
Any scripts or data that you put into this service are public.
Add the following code to your website.
Copy to clipboard
For more information on customizing the embed code, read Embedding Snippets.