Skip to contents

All functions

H_binary()
Binary entropy function
block_degree_sequence()
Sequence of relative degrees per block.
block_edge_counts()
Matrix of edge counts between blocks
block_edge_list()
Create list of edges per block
block_node_counts()
Node counts for blocks
block_sequence()
Build a sequence of block numbers
calculate_dl()
Description length of a block partition
check_partition()
Check partition
collapse_step()
Perform an agglomerative merge step
dcsbm()
dcsbm: Estimate degree corrected stochastic block models
entropy_corrected()
Entropy (degree corrected)
entropy_trad()
Traditional Entropy (no degree correction)
get_entropy()
Entropy of a block partition
get_proposal_results()
Calculate entropy delta of the SBM before and after the proposed move and the ratio of the probabilities of moving to the proposed block before the move and moving back to the original block after the move.
get_transmission_probs()
Build a matrix of transmission probabilities for given graph and partition
h_func()
Mathematical function used description length calculation
mcmc_single_sweep()
Run a single MCMC sweep over nodes
mcmc_sweep()
Run multiple MCMC sweep overs nodes
propose_move()
A single move proposal during an MCMC sweep
resample()
Safer resample
sample_at_least_once()
Sample at least once with replacement See https://stackoverflow.com/a/26350427/10042003.
sample_dcppm()
Sample planted partition model with degree variability (Piexoto 2020)
sample_ppm()
Sample planted partition model (Piexoto 2014)
swap_blocks()
Swap the block membership of a vertex
update_block_edge_list()
Create list of edges per block