Is the graph a connected graph?
Description Usage Arguments Value Examples
View source: R/is_graph_directed.R
Determines whether a graph is set to be directed or not and returns a logical value to that effect.
1  is_graph_directed(graph)

graph 
a graph object of class

a logical value.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15  # Create an empty graph; by default, new graphs
# made by `create_graph()` are directed`
graph <
create_graph()
# Determine whether the graph is directed
is_graph_directed(graph)
#> [1] TRUE
# Use the `set_graph_undirected()` function and
# check again whether the graph is directed
graph %>%
set_graph_undirected() %>%
is_graph_directed()
#> [1] FALSE

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.
Please suggest features or report bugs in the GitHub issue tracker.
All documentation is copyright its authors; we didn't write any of that.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.