Learn R Programming

EpiModel (version 2.5.0)

delete_edges: Remove Edges That Include Specified Vertices

Description

Given a current two-column matrix of edges and a vector of vertex IDs, this function removes any rows of the edgelist in which the IDs are present.

Usage

delete_edges(el, vid)

Value

Returns an updated edgelist object, with any edges including the specified vertices removed.

Arguments

el

A two-column matrix of current edges (edgelist).

vid

A vector of vertex IDs whose edges are to be deleted from the edgelist.