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 Oct. 12, 2024, 1:06 a.m.