powered by
ecount is an alias of this function.
ecount
gsize(graph)
Numeric scalar, the number of edges.
The graph.
Other structural queries: [.igraph(), [[.igraph(), adjacent_vertices(), are_adjacent(), ends(), get.edge.ids(), gorder(), head_of(), incident_edges(), incident(), is_directed(), neighbors(), tail_of()
[.igraph()
[[.igraph()
adjacent_vertices()
are_adjacent()
ends()
get.edge.ids()
gorder()
head_of()
incident_edges()
incident()
is_directed()
neighbors()
tail_of()
g <- sample_gnp(100, 2/100) gsize(g) ecount(g) # Number of edges in a G(n,p) graph replicate(100, sample_gnp(10, 1/2), simplify = FALSE) %>% vapply(gsize, 0) %>% hist()
Run the code above in your browser using DataLab