Package: fastRG 0.4.0
fastRG: Sample Generalized Random Dot Product Graphs in Linear Time
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.
Authors:
fastRG_0.4.0.tar.gz
fastRG_0.4.0.zip(r-4.7)fastRG_0.4.0.zip(r-4.6)fastRG_0.4.0.zip(r-4.5)
fastRG_0.4.0.tgz(r-4.6-any)fastRG_0.4.0.tgz(r-4.5-any)
fastRG_0.4.0.tar.gz(r-4.7-any)fastRG_0.4.0.tar.gz(r-4.6-any)
fastRG_0.4.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
card.svg |card.png
fastRG/json (API)
NEWS
| # Install 'fastRG' in R: |
| install.packages('fastRG', repos = c('https://rohelab.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/rohelab/fastrg/issues
Pkgdown/docs site:https://rohelab.github.io
adjacency-matrixgraph-samplinglatent-factors
Last updated from:01579e164c. Checks:9 OK. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel-x86_64 | OK | 172 | ||
| source / vignettes | OK | 220 | ||
| linux-release-x86_64 | OK | 169 | ||
| macos-release-arm64 | OK | 175 | ||
| macos-oldrel-arm64 | OK | 106 | ||
| windows-devel | OK | 119 | ||
| windows-release | OK | 114 | ||
| windows-oldrel | OK | 116 | ||
| wasm-release | OK | 125 |
Exports:chung_ludcsbmdirected_dcsbmdirected_erdos_renyidirected_factor_modeleigs_symerdos_renyiexpectationexpected_degreeexpected_degreesexpected_densityexpected_edgesexpected_in_degreeexpected_out_degreemmsbmoverlapping_sbmplanted_partitionplot_dense_matrixplot_expectationplot_sparse_matrixsample_edgelistsample_igraphsample_sparsesample_tidygraphsbmsvdsundirected_factor_model
Dependencies:clicpp11dplyrfarvergenericsggplot2gluegtableigraphisobandlabelinglatticelifecyclemagrittrMatrixpillarpkgconfigpurrrR6RColorBrewerRcppRcppEigenrlangRSpectraS7scalesstringistringrtibbletidygraphtidyrtidyselectutf8vctrsviridisLitewithr
