get_mixing_matrix: Compute mixing matrix of a graph

View source: R/get_mixing_matrix.R

get_mixing_matrixR Documentation

Compute mixing matrix of a graph

Description

get_mixing_matrix returns the mixing matrix of a graph G based on a node attribute att.

Usage

get_mixing_matrix(G, att, counts = FALSE)

Arguments

G

An igraph graph.

att

An attribute name.

counts

Whether to return edge counts rather than proportions. Defaults to FALSE. If TRUE then returns matrix defined by Equation (1) in Newman (2003).

Value

A matrix.

References

Newman, M. E. J, (2003). Mixing patterns in networks. Physical Review E 67:026126. \Sexpr[results=rd]{tools:::Rd_expr_doi("10.1103/PhysRevE.67.026126")}


bldavies/bldr documentation built on March 29, 2024, 10:22 a.m.