Description Usage Arguments Value Examples
This function takes in a dataframe with 'node' and 'activation' columns, and simulates the spread of activation among nodes in a specified network structure.
1 2 |
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. |
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.