Clear any currently set global graph
attributes for a graph object of class
dgr_graph
).
clear_global_graph_attrs(graph)
graph | a graph object of class
|
---|
a graph object of class dgr_graph
.
# Create a new graph and set # some global attributes graph <- create_graph() %>% set_global_graph_attrs( attr = "overlap", value = "true", attr_type = "graph") # Clear all global attributes # that have been set graph <- graph %>% clear_global_graph_attrs() # Look at the present global # graph attributes; since there # are none, NA is returned graph %>% get_global_graph_attrs()#> [1] NA