knitr::opts_chunk$set( collapse = TRUE, comment = "#>" )
We are interested in running a large scale simulation featuring hundreds of thousands (if not millions) of vertices. Before we proceed, you need to consider the following:
summary(..., skip.moran = FALSE)
--the default behavior--is not a good idea. When dealing with large graphs, set skip.moran = TRUE
to avoid memory overflow.Suppose we want to simulate a diffusion process with the following parameters:
library(netdiffuseR)
We no proceed with the simulation
ans_sw <- rdiffnet(n = 200, t = 10)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.