powered by
The size of the graph is the number of edges
size(graph)
Numeric scalar, the number of edges.
The graph.
G <- graph(list(A = c("B", "C"), B = "C", C = "A")) size(G)
Run the code above in your browser using DataLab