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

set_graph_attr

Set a graph attribute


Description

An existing attribute with the same name is overwritten.

Usage

set_graph_attr(graph, name, value)

Arguments

graph

The graph.

name

The name of the attribute to set.

value

New value of the attribute.

Value

The graph with the new graph attribute added or set.

See Also

Examples

g <- make_ring(10) %>%
  set_graph_attr("layout", layout_with_fr)
g
plot(g)

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.