SkillAgentSearch skills...

Sbm

R/cpp code for stochastic block modeling, allowing for multilayer networks, degree corrected (or not) and directed (or not) networks, and non-negative edge weights. Code adapted/extended from Karrer & Newman 2010 (http://www-personal.umich.edu/~mejn/dcsbm/)

Install / Use

/learn @jcarlen/Sbm
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

Code to fit time-dependent stochastic block models

sbmt (TDD-SBM)

The sbmt folder contains an Rcpp package to implement the time-dependent discrete stochastic block model (TDD-SBM) we introduce in https://arxiv.org/abs/1908.09440. It builds off the KLOptimization code of Karrer and Newman, using a direct extension of the Kergnighan-Lin algorithm for multilayer (specifically time-sliced) networks. However, the package is more general than fitting TDD-SBM, as it can also fit undirected networks, with or without degree correction, with or without multiple layers (time slices), and with any type of non-negative edge weights.

To install:

In terminal - from folder containing sbmt > R CMD build sbmt; R CMD check sbmt; R CMD install sbmt
In R - devtools::install_github("jcarlen/sbm", subdir = "sbmt")

This package is a work in progress and any suggestions for improvements or found bugs are appreciated.

KLOptimization

Contains standalone c++ code to fit degree-corrected (and not degree-corrected) stochastic block models for a single-layer (not time-sliced) network. We include it here because our code to fit time-dependent discrete-membership SBM (in sbmt) build off this code. In KLOptimization, KLOptimization.cpp is the original script from Karrer & Newman 2010 (http://www-personal.umich.edu/~mejn/dcsbm/) for undirected networks. KLOptimization_directed.cpp is my extension of that code to directed networks. See the comments of those files for implementation details.

View on GitHub
GitHub Stars7
CategoryDevelopment
Updated2y ago
Forks0

Languages

C++

Security Score

70/100

Audited on Jun 1, 2023

No findings