delete_edges: Remove Edges That Include Specified Vertices

View source: R/update.R

delete_edgesR 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.


EpiModel documentation built on July 9, 2023, 5:21 p.m.