subtract_edge: Subtract Edges from an Adjacency List
Description
Subtract Edges from an Adjacency List
Usage
subtract_edge(adj, v1, v2, ids = NULL, zero = TRUE)
Value
adjacency list.
Arguments
adj
list of adjacent precincts
v1
vector of vertex identifiers for the first vertex. Can be an
integer index or a value to look up in ids, if that argument is provided.
If more than one identifier is present, disconnects each to corresponding
entry in v2, if an edge exists.
v2
vector of vertex identifiers for the second vertex. Can be an
integer index or a value to look up in ids, if that argument is provided.
If more than one identifier is present, disconnects each to corresponding
entry in v2, if an edge exists.
ids
A vector of identifiers which is used to look up the row indices
for the vertices. If provided, the entries in v1 and v2 must match
exactly one entry in ids.
zero
boolean, TRUE if adj is zero indexed. False if one indexed.