convertSparseMatrixToGraph = function(sparseMatrix){
library(igraph)
return(igraph::graph_from_adjacency_matrix(sparseMatrix, mode = c( "upper")))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.