Package: rSpectral 1.0.0.16

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.16.tar.gz
rSpectral_1.0.0.16.zip(r-4.7-x86_64)rSpectral_1.0.0.16.zip(r-4.7-arm64)rSpectral_1.0.0.16.zip(r-4.6-x86_64)rSpectral_1.0.0.16.zip(r-4.6-arm64)rSpectral_1.0.0.16.zip(r-4.5-x86_64)
rSpectral_1.0.0.16.tgz(r-4.6-x86_64)rSpectral_1.0.0.16.tgz(r-4.6-arm64)rSpectral_1.0.0.16.tgz(r-4.5-x86_64)rSpectral_1.0.0.16.tgz(r-4.5-arm64)
rSpectral_1.0.0.16.tar.gz(r-4.7-arm64)rSpectral_1.0.0.16.tar.gz(r-4.7-x86_64)rSpectral_1.0.0.16.tar.gz(r-4.6-arm64)rSpectral_1.0.0.16.tar.gz(r-4.6-x86_64)
rSpectral_1.0.0.16.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
rSpectral/json (API)

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

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

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

On CRAN:

Conda:

openblascpp

4.08 score 2 stars 1 packages 9 scripts 1.0k downloads 3 exports 18 dependencies

Last updated from:f6d51e90ce. Checks:15 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-arm64OK166
linux-devel-x86_64OK179
source / vignettesOK212
linux-release-arm64OK124
linux-release-x86_64OK131
macos-release-arm64OK151
macos-release-x86_64OK375
macos-oldrel-arm64OK164
macos-oldrel-x86_64OK351
windows-devel-arm64OK354
windows-devel-x86_64OK129
windows-release-arm64OK363
windows-release-x86_64OK130
windows-oldrel-x86_64OK143
wasm-releaseOK124

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