Skip to contents

Read the society's edge list as a symmetric agents-by-agents 0/1 matrix: entry [i, j] is 1 when agents i and j are connected (an edge exists in either direction), 0 otherwise. Row and column names are agent ids. This is the "who could see whom" structure the network encodes, separate from what any given round actually showed each agent.

Usage

exposure_matrix(society)

Arguments

society

A society().

Value

A numeric matrix (agents x agents) of 0/1 with agent ids as dimnames; the diagonal is 0.

Examples

if (FALSE) { # \dontrun{
exposure_matrix(soc)
} # }