edges <- function(M, edgeRank){ M[rank(abs(M))<(nrow(M)*ncol(M)-edgeRank+1)]<-0 return(M) }
Add the following code to your website.
REMOVE THIS Copy to clipboard
For more information on customizing the embed code, read Embedding Snippets.