Remove the edge between a and b

remove_edge(gr, a, b)

Arguments

gr

tidygraph graph object

a, b

indices of the two nodes connected by the edge to remove

Value

a tidygraph graph object without the edge

Examples

set.seed(0) plot(remove_edge(tidygraph::create_ring(3), 1, 2))