View source: R/generatenetworkslices.R
generatenetworkslices | R Documentation |
Constructs weighted directed networks from all events occurring within certain time windows. Weight is equal to the number of interactions observed during the time window.
generatenetworkslices(g, timedeltas)
g |
The time-ordered network to be sliced. |
timedeltas |
A n x 2 matrix, where each row contains a set of start (first column) and stop (second column) times at which the network should be sliced. |
A list containing n time-aggregated networks corresponding to the n time windows.
Benjamin Blonder bblonder@email.arizona.edu.
plotnetworkslices
, generatetimedeltas
, generatetimelags
~~~
data(ants)
allindivs <- c(union(ants$VertexFrom, ants$VertexTo), "NULL1", "NULL2")
g <- generatetonetwork(ants, allindivs)
td100 <- generatetimedeltas(0,1500,100)
ns100 <- generatenetworkslices(g, td100)
plotnetworkslices(ns100, td100)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.