Skip to contents

Delete an edge attribute

Usage

delete_edge_attr(graph, name)

Arguments

graph

The graph

name

The name of the edge attribute to delete.

Value

The graph, with the specified edge attribute removed.

Examples

g <- make_ring(10) %>%
  set_edge_attr("name", value = LETTERS[1:10])
edge_attr_names(g)
#> [1] "name"
g2 <- delete_edge_attr(g, "name")
edge_attr_names(g2)
#> character(0)