Skip to contents

Delete a graph attribute

Usage

delete_graph_attr(graph, name)

Arguments

graph

The graph.

name

Name of the attribute to delete.

Value

The graph, with the specified attribute removed.

Examples

g <- make_ring(10)
graph_attr_names(g)
#> [1] "name"     "mutual"   "circular"
g2 <- delete_graph_attr(g, "name")
graph_attr_names(g2)
#> [1] "mutual"   "circular"