View source: R/is_graph_simple.R
is_graph_simple | R Documentation |
Determine whether the graph is a simple graph. A simple graph is one that does not contain any loops nor any multiple edges.
is_graph_simple(graph)
graph |
A graph object of class |
A logical value.
# Create a graph with 2 cycles
graph <-
create_graph() %>%
add_cycle(n = 4) %>%
add_cycle(n = 3)
# Check if the graph is simple
graph %>% is_graph_simple()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.