R/remove_edge.R
remove_edge.Rd
Remove the edge between a and b
a
b
remove_edge(gr, a, b)
tidygraph graph object
indices of the two nodes connected by the edge to remove
a tidygraph graph object without the edge
set.seed(0) plot(remove_edge(tidygraph::create_ring(3), 1, 2))