View source: R/is_graph_connected.R
is_graph_connected | R Documentation |
Determines whether a graph is a connected graph.
is_graph_connected(graph)
graph |
A graph object of class |
A logical value.
# Create a random graph using the
# `add_gnm_graph()` function; this
# graph is not connected
create_graph() %>%
add_gnm_graph(
n = 15,
m = 10,
set_seed = 23) %>%
is_graph_connected()
# Create another random graph;
# this graph is connected
create_graph() %>%
add_gnm_graph(
n = 10,
m = 15,
set_seed = 23) %>%
is_graph_connected()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.