Skip to contents

Calculate the entropy associated with the current block partition and type of degree correction.

Usage

get_entropy(graph, partition, degree_correction = FALSE)

Arguments

graph

An igraph graph.

partition

Vector of integer values giving the block membership of each vertex

degree_correction

Whether to account for degree variability.

Value

Entropy value (numeric) for the given graph and partition.