delete_edges {EpiModel} | R Documentation |
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)
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. |
Value
Returns an updated edgelist object, with any edges including the specified vertices removed.
[Package EpiModel version 2.4.0 Index]