Convert a directed graph to an undirected graph
Take a graph which is directed and convert it to an undirected graph.
set_graph_undirected(graph)
graph |
A graph object of class |
A graph object of class dgr_graph
.
# Create a graph with a # directed tree graph <- create_graph() %>% add_balanced_tree( k = 2, h = 2) # Convert this graph from # directed to undirected graph <- graph %>% set_graph_undirected() # Perform a check on whether # graph is directed graph %>% is_graph_directed()
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.