Get a count of all edges
From a graph object of class dgr_graph
, get a count of edges in the graph.
count_edges(graph)
graph |
A graph object of class |
A single-length numeric vector.
# Create a graph with a # path of nodes and 3 # unconnected nodes graph <- create_graph() %>% add_path(n = 3) %>% add_n_nodes(n = 3) # Get a count of all edges # in the graph graph %>% count_edges()
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.