Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

delete_vertex_attr

Delete a vertex attribute


Description

Delete a vertex attribute

Usage

delete_vertex_attr(graph, name)

Arguments

graph

The graph

name

The name of the vertex attribute to delete.

Value

The graph, with the specified vertex attribute removed.

See Also

Examples

g <- make_ring(10) %>%
  set_vertex_attr("name", value = LETTERS[1:10])
vertex_attr_names(g)
g2 <- delete_vertex_attr(g, "name")
vertex_attr_names(g2)

igraph

Network Analysis and Visualization

v1.2.10
GPL (>= 2)
Authors
See AUTHORS file.
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.