Add a graph-level attribute to the graph object

add_graph_attribute(x, attr_name = NULL, value)

Arguments

x

graph of class igraph or network

attr_name

character, name to be used for the attribute

value

the value to be given to the attribute

Value

graph with the added graph attribute