| gsize | R Documentation |
ecount() and gsize() are aliases.
gsize(graph)
ecount(graph)
graph |
The graph. |
Numeric scalar, the number of edges.
Other structural queries:
[.igraph(),
[[.igraph(),
adjacent_vertices(),
are_adjacent(),
ends(),
get_edge_ids(),
gorder(),
head_of(),
incident(),
incident_edges(),
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()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.