# Create an empty graph
graph <- create_graph()
# Determine whether the graph is empty
graph %>% is_graph_empty()
# Create a non-empty graph
graph <-
create_graph() %>%
add_n_nodes(n = 3)
# Determine whether this graph is empty
graph %>% is_graph_empty()
Run the code above in your browser using DataLab