Description Usage Arguments Value Examples
This function is a faster version of spread using better vectorization in R and a little bit of C++.
1 2 | spread_fast(network, start_run, retention = 0.5, time = 10, decay = 0,
suppress = 0, create_names = TRUE)
|
network |
Network where the spreading occurs. Must be specified. Must be an igraph object with a "name" property or an adjacency matrix. |
start_run |
A non-empty dataframe with 'node' and 'activation' columns. Must be specified. |
retention |
Proportion of activation that remains in the node from which activation is being spread from. Ranges from 0 to 1. Default is 0.5. |
time |
Number of time steps to run the spread() function for. Default is 10. |
decay |
Proportion of activation that is lost at each time step. Ranges from 0 to 1. Default is 0. |
suppress |
Suppress nodes with a final activation of < x units at each time step to an activation value of 0. Default is 0. |
create_names |
Name nodes 1:numeber_of_nodes in case network is missing node names. |
A compiled dataframe with 'node', 'activation' and 'time' columns showing the spread of activation in the network over time.
1 | #See Vignette for examples.
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.