View source: R/is_graph_directed.R
is_graph_directed | R Documentation |
Determines whether a graph is set to be directed or not and returns a logical value to that effect.
is_graph_directed(graph)
graph |
A graph object of class |
A logical value.
# Create an empty graph; by default, # new graphs made by `create_graph()` # are directed graph <- create_graph() # Determine whether the graph # is directed graph %>% is_graph_directed() # Use the `set_graph_undirected()` # function and check again whether # the graph is directed graph %>% set_graph_undirected() %>% is_graph_directed()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.