Learn R Programming

EpiModel (version 2.2.1)

get_edgelist: Get an Edgelist From the Specified Network

Description

This function outputs an edgelist from the specified network, selecting the method depending on the stored network type.

Usage

get_edgelist(dat, network)

Value

An edgelist in matrix form with the two columns. Each column contains the posit_ids (see get_posit_ids)of the nodes in each edge.

Arguments

dat

Master list object of network models.

network

Numerical index of the network from which the edgelist should be extracted.