View source: R/network_construction.R
| network_construction | R Documentation |
Convert the output of the TILES dynamic community detection algorithm to a network where each node is a community and each link is the number of individuals moving between communities. The R workspace needs to include both the input file and a subdirectory called "output" that has the unzipped graph and strong-communities output files
network_construction( file, first_year, plot_years, min_group_size = 1, min_link_size = 1, unix_time_origin = "1970-01-01" )
file |
The input file used for TILES, in the format specified by https://github.com/GiulioRossetti/TILES. |
first_year |
The first year from the TILES input file. |
plot_years |
The years to include in the network. |
min_group_size |
The minimum group size to be included in the network (default is 1). |
min_link_size |
The minimum link size to be included in the network (default is 1). |
unix_time_origin |
The origin for the Unix times used in the input file for TILES (defaults to 1970-01-01). |
A list with links and nodes. The links are directed and weighted. The nodes are in the format communityID_year, where a single community can persist across multiple years (e.g. 362_1975 -> 362_1976 -> 362_1977).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.