remove_edge: Remove an edge

Description Usage Arguments Value Examples

View source: R/remove_edge.R

Description

Remove the edge between a and b

Usage

1
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

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

jhrcook/wext documentation built on May 17, 2021, 1:19 a.m.