Learn R Programming

EpiModel (version 2.2.0)

get_edgelist: Get an Edgelist From the Specified Network

Description

This function outputs an edgelist from the specified network. it chooses the right method depending on the type of network and the output is standardly formatted.

Usage

get_edgelist(dat, network)

Arguments

dat

a Master list object of network models

network

the index of the network to extract the edgelist from

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