Skip to content

fastRG

0.4.0

Sample Generalized Random Dot Product Graphs in Linear Time

1packages depend
3.2Kdownloads / year
43.9%test coverage
13/13checks pass

Overview

About
Maintained by Alex HayesFirst published 2021-02-265 releasesCRAN page ↗GitHub ↗

Samples generalized random product graphs, a generalization of a broad class of network models. Given matrices X, S, and Y with with non-negative entries, samples a matrix with expectation X S Y^T and independent Poisson or Bernoulli entries using the fastRG algorithm of Rohe et al. (2017) https://www.jmlr.org/papers/v19/17-128.html. The algorithm first samples the number of edges and then puts them down one-by-one. As a result it is O(m) where m is the number of edges, a dramatic improvement over element-wise algorithms that which require O(n^2) operations to sample a random graph, where n is the number of nodes.

Install

Health

CRAN checks
13OK
Slowest check: 4.2 min · r-oldrel-windows-x86_64
Code health
Yes
Tests · ratio 0.22
43.9%
Coverage · measured lines
100%
Documentation · exports
12
Dependencies · direct
Check history
  • OK2026-08-05
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • NOTE2026-08-01
    12 OK · 1 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • OK2026-06-09
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • ERROR2026-06-08
    12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
  • OK2026-03-10
    14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Documentation

Documentation
READMEYes · 675 wordsVignettesYes · dynamicpkgdown siteNoNEWSYes · 100% structuredCode of conductNoContributing guideNo
Examples that run
100%
Documented parameters
100%
Return-value docs
95%
References docs
30%

Downloads

3.2K
CRAN downloads in the past year
Rank #15,315 · ~9/day · ~264/mo
Daily download trend is not available in this view yet.
18330 days
68090 days
3.2K1 year
Compare downloads with other packages →
Also on103 r2u17 autocran

Repository

Repository
5Stars
0Forks
8Open issues
0Open PRs
4Releases
222Commits
4Contributors
graph-samplinglatent-factorsadjacency-matrix
222 commits · Last activity 2025-12-05

Stars over time

2023-08-02 · 52026-07-07 · 5

Repository practices

Upstream repositoryBeta

5 development-tooling and community-health practices detected across 5 families in the upstream repository

Checks run against github.com/rohelab/fastrg on 2026-08-16.

Continuous integration (1)
GitHub Actions
CRAN release process (1)
cran-comments.md
Docs source (1)
README.Rmd
Lint, format, editor (1)
RStudio project
Show all practices
Coverage (1)
Codecov
How this is detected·Detection ruleset v1 (2026-07-18)

Dependencies

Declared dependencies
17 external dependencies (excludes base and recommended)
Depends (1)
Matrix
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
1direct
0indirect

Code & Tests

People & History

People (5)
Maintainer (1)
Author, Maintainer, Copyright holder
Authors (5)
Author, Maintainer, Copyright holder
Author, Copyright holder
Author
Copyright holders (2)
Author, Maintainer, Copyright holder
Author, Copyright holder
Package Timeline

5 releases. Pick two to compare their code metrics. R releases are shown for context.

  • R
    R 4.6.0 released · 2026-04-24
  • 0.4.0Latest
    2025-12-06 · current release · diff ↗
  • 0.3.3
    2025-07-24 · diff ↗
  • R
    R 4.5.0 released · 2025-04-11
  • R
    R 4.4.0 released · 2024-04-24
  • 0.3.2
    2023-08-21 · diff ↗
  • R
    R 4.3.0 released · 2023-04-21
  • 0.3.1
    2022-06-30 · diff ↗
  • R
    R 4.2.0 released · 2022-04-22
  • R
    R 4.1.0 released · 2021-05-18
  • 0.3.0
    2021-02-26
  • R
    R 4.0.0 released · 2020-04-24

Package metadata

First published
2021-02-26
Total releases
5 / 5 yrs
License
MIT + file LICENSE OSI
Download size
317 KB
Installed size
not tracked yet
With dependencies
not tracked yet

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("fastRG")
Hayes, A., Binkiewicz, N., Han, X., Rohe, K., & Tao, J. (2025). fastRG: Sample Generalized Random Dot Product Graphs in Linear Time (Version 0.4.0) [Computer software]. https://doi.org/10.32614/CRAN.package.fastRG

This is what citation() produces when a package has no citation file of its own. If it prints something else, use that.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for fastRG version 0.4.0 [Data set]. HJJB, LLC. Data release v2026-08-18. https://doi.org/10.5281/zenodo.21843040

From data release v2026-08-18, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy