Analysis of Diffusion and Contagion Processes on Networks
Overview
Empirical statistical analysis, visualization and simulation of diffusion and contagion processes on networks. The package implements algorithms for calculating network diffusion statistics such as transmission rate, hazard rates, exposure models, network threshold levels, infectiousness (contagion), and susceptibility. The package is inspired by work published in Valente, et al., (2015) DOI:10.1016/j.socscimed.2015.10.001; Valente (1995) <ISBN: 9781881303213>, Myers (2000) DOI:10.1086/303110, Iyengar and others (2011) DOI:10.1287/mksc.1100.0566, Burt (1987) DOI:10.1086/228667; among others.
User-visible changes
- New function
collapse_timeframes(): aggregates high-resolution or continuous-time longitudinal edgelists into discrete time windows, ready for use withedgelist_to_adjmat()oras_diffnet(). The function contains parameters such asbinarize,cumulative, andsymmetricfor better control over the aggregation process. - New dataset
epigamesandepigamesDiffNet: a simulated epidemic game network with 594 nodes and 15 time periods from the WKU Epi Games study.
Internal changes
- Fixed CRAN example error in
round_to_seq():plot(w, x)replaced withplot(w)to avoid%||%operator issue in R 4.4.0+'sformula.defaultwhen called viaplot.data.frame().
Show all changes in 1.25.0Hide the rest of the changes in 1.25.0
- Removed
configureframework. R already provides paths and configuration for OpenMP.
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK13 OK2026-06-09
- ERROR12 OK, 1 ERROR2026-06-08
- OK13 OK2026-04-28
Show 4 earlier changesHide 4 earlier changes
- ERROR11 OK, 1 ERROR2026-04-27
- OK12 OK2026-04-25
- NOTE11 OK, 3 NOTE2026-04-22
- ERROR6 OK, 3 NOTE, 5 ERROR2026-03-10
Documentation
- Help pages
- 85includes a package overview page
- Examples that run
- 98%59 run in a plain check · 1 never run
- Exported functions with examples
- 84%
- Documented parameters
- 90%
- Return-value docs
- 100%
- Help pages citing references
- 29%
Downloads
Repository
- PRs merged (all time)
- 81%
- Median days to close, 50 most recently updated closed issues
- 12
- Median days to close, 50 most recently updated closed PRs
- 1
Stars over time
Forks over time
Releases over time
Issues over time
PRs over time
Commits over time
13 development-tooling and community-health practices detected across 7 families in the upstream repository
Checks run against github.com/usccana/netdiffuser on 2026-10-18.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
GitHub Pages site last deployed 2026-10-12 · The repository has a site deploy workflow
Show all practicesHide 3 practices
This repository shows signs of AI coding tools.
- GitHub Copilotfirst seen 2025-09-08Seen in the repository: .github/copilot-instructions.mdPull request: opened by its own accountCommits: 3 by its own account · at least 6 crediting it in the message
- Claude Codefirst seen 2026-08-06Pull request it wrote: opened by a project memberCommits: at least 2 crediting it in the message
- Codexfirst seen 2026-08-15Commits: at least 2 crediting it in the message
- Claude Opus 51 commit · Aug 2026
- Claude Sonnet 51 commit · Sep 2026
Dependencies
Installing netdiffuseR adds 30 packages (18 with compiled code, 18 MB of source tarballs). Heaviest: igraph 4.8 MB, Rcpp 1.8 MB, MatchIt 1.7 MB.
Code & Tests
Datasets
People & History
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- unarchivedReturned to CRAN2026-04-10
- 1.25.0Latest
- archivedRemoved from CRAN2026-04-06issues were not corrected despite reminders
- unarchivedReturned to CRAN2025-12-09
- 1.24.0
- archivedRemoved from CRAN2025-11-28issues were not corrected despite reminders
- 1.23.0
- RR 4.5.0 released · 2025-04-11
- RR 4.4.0 released · 2024-04-24
- 1.22.62023-08-30 · diff ↗
- RR 4.3.0 released · 2023-04-21
- unarchivedReturned to CRAN2022-12-02
- 1.22.5
- archivedRemoved from CRAN2022-10-05repeated check issues were not corrected in time
- 1.22.42022-09-20 · diff ↗
Show 27 earlier eventsHide 27 earlier events
- RR 4.2.0 released · 2022-04-22
- unarchivedReturned to CRAN2021-05-28
- 1.22.32021-05-28 · diff ↗
- RR 4.1.0 released · 2021-05-18
- archivedRemoved from CRAN2021-05-11check problems were not corrected in time
- unarchivedReturned to CRAN2020-05-07
- 1.22.02020-05-07 · diff ↗
- RR 4.0.0 released · 2020-04-24
- archivedRemoved from CRAN2020-03-07check problems were not corrected in time
- unarchivedReturned to CRAN2020-02-12
- 1.21.02020-02-12 · diff ↗
- archivedRemoved from CRAN2019-12-21check problems were not corrected in time
- RR 3.6.0 released · 2019-04-26
- 1.20.22019-03-26 · diff ↗
- 1.20.0
- RR 3.5.0 released · 2018-04-23
- 1.19.02017-10-26 · diff ↗ ·
added 3 exports
igraph_vertex_rescale, rdiffnet_multiple, vertex_rescale_igraph - 1.18.12017-07-24 · diff ↗ ·
added 5 exports
diffnet_to_network, diffnet_to_networkDynamic, networkDynamic_to_diffnet, network_to_diffnet, new_diffnet - 1.18.02017-07-18 · diff ↗ ·
added 17 exports
approx_geodesic, approx_geodist, as.dgCMatrix, as_dgCMatrix, as_spmat, bass_F, bass_dF, bass_f, bootnet, compare_matrix, fitbass, leader_matching, matrix_compare, mentor_matching, netmatch, netmatch_prepare, resample_graph - RR 3.4.0 released · 2017-04-21
- 1.17.02016-11-11 · diff ↗ ·
added 14 exports
diag_expand, ego_variance, permute_graph, read_ml, read_ucinet_head, rewire_permute, rewire_qap, struct_test_asymp, transformGraphBy, vertex_covariate_compare, vertex_covariate_dist, vertex_mahalanobis_dist, weighted_var, wvar - 1.16.72016-07-07 · diff ↗ ·
added 12 exports
%*%, classify, classify_adopters, diffmap, diffnetLapply, diffusionMap, drawColorKey, n_rewires, plot_diffnet2, pretty_within, rescale_vertex_igraph, round_to_seq - 1.16.52016-05-07 · diff ↗ ·
removed 1 export
diffnet.subset.slicesadded 14 exports
adopt_changes, diffnet_check_attr_class, diffnet_to_igraph, edgelist_to_diffnet, igraph_to_diffnet, nedges, nlinks, nnodes, nodes, nslices, nvertices, read_pajek, read_ucinet, survey_to_diffnet - RR 3.3.0 released · 2016-05-03
- archivedRemoved from CRAN2016-05-02check problems were not corrected despite reminders
- 1.16.22016-02-18
- RR 3.2.0 released · 2015-04-16
Package metadata
- First published
- 2016-02-18
- Total releases
- 18 / 10 yrs
- License
- MIT + file LICENSE OSI
- Minimum R
- ≥ 3.5
- Bundled data
- 514 KB / 12 files
- Download size
- 3.4 MB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("netdiffuseR")The package provides a citation file that builds its entry when R runs it. Run citation() to see it.
The repository also keeps a CITATION.cff.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-20, which the citation names so these numbers can be found later. More on citing and the projects behind them.