Package: rSpectral 1.0.0.11

Anatoly Sorokin

rSpectral: Spectral Modularity Clustering

Implements the network clustering algorithm described in Newman (2006) <doi:10.1103/PhysRevE.74.036104>. The complete iterative algorithm comprises of two steps. In the first step, the network is expressed in terms of its leading eigenvalue and eigenvector and recursively partition into two communities. Partitioning occurs if the maximum positive eigenvalue is greater than the tolerance (10e-5) for the current partition, and if it results in a positive contribution to the Modularity. Given an initial separation using the leading eigen step, 'rSpectral' then continues to maximise for the change in Modularity using a fine-tuning step - or variate thereof. The first stage here is to find the node which, when moved from one community to another, gives the maximum change in Modularity. This node’s community is then fixed and we repeat the process until all nodes have been moved. The whole process is repeated from this new state until the change in the Modularity, between the new and old state, is less than the predefined tolerance. A slight variant of the fine-tuning step, which can improve speed of the calculation, is also provided. Instead of moving each node into each community in turn, we only consider moves of neighbouring nodes, found in different communities, to the community of the current node of interest. The two steps process is repeatedly applied to each new community found, subdivided each community into two new communities, until we are unable to find any division that results in a positive change in Modularity.

Authors:Colin Mclean [aut], Anatoly Sorokin [aut, cre]

rSpectral_1.0.0.11.tar.gz
rSpectral_1.0.0.11.zip(r-4.5)rSpectral_1.0.0.11.zip(r-4.4)rSpectral_1.0.0.11.zip(r-4.3)
rSpectral_1.0.0.11.tgz(r-4.4-x86_64)rSpectral_1.0.0.11.tgz(r-4.4-arm64)rSpectral_1.0.0.11.tgz(r-4.3-x86_64)rSpectral_1.0.0.11.tgz(r-4.3-arm64)
rSpectral_1.0.0.11.tar.gz(r-4.5-noble)rSpectral_1.0.0.11.tar.gz(r-4.4-noble)
rSpectral_1.0.0.11.tgz(r-4.4-emscripten)rSpectral_1.0.0.11.tgz(r-4.3-emscripten)
rSpectral.pdf |rSpectral.html
rSpectral/json (API)
NEWS

# Install 'rSpectral' in R:
install.packages('rSpectral', repos = c('https://cmclean5.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/cmclean5/rspectral/issues

Uses libs:
  • openblas– Optimized BLAS
  • c++– GNU Standard C++ Library v3

On CRAN:

3.18 score 1 stars 1 packages 9 scripts 214 downloads 3 exports 18 dependencies

Last updated 2 years agofrom:2149230346. Checks:OK: 1 NOTE: 8. Indexed: yes.

TargetResultDate
Doc / VignettesOKNov 10 2024
R-4.5-win-x86_64NOTENov 10 2024
R-4.5-linux-x86_64NOTENov 10 2024
R-4.4-win-x86_64NOTENov 10 2024
R-4.4-mac-x86_64NOTENov 10 2024
R-4.4-mac-aarch64NOTENov 10 2024
R-4.3-win-x86_64NOTENov 10 2024
R-4.3-mac-x86_64NOTENov 10 2024
R-4.3-mac-aarch64NOTENov 10 2024

Exports:spectral_graphNELspectral_igraph_communitiesspectral_igraph_membership

Dependencies:BiocGenericsclicpp11genericsgluegraphigraphlatticelifecyclemagrittrMatrixpkgconfigrbibutilsRcppRcppArmadilloRdpackrlangvctrs

Readme and manuals

Help Manual

Help pageTopics
rSpectralrSpectral-package rSpectral
Spectral clustering for 'graphNEL' objectsspectral_graphNEL
Spectral clustering for 'igraph' objectsspectral_igraph_communities
Spectral clustering for 'igraph' objectsspectral_igraph_membership