EVOLUTION-MANAGER
Edit File: gsize.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>R: The size of the graph (number of edges)</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link rel="stylesheet" type="text/css" href="R.css" /> </head><body> <table width="100%" summary="page for gsize {igraph}"><tr><td>gsize {igraph}</td><td style="text-align: right;">R Documentation</td></tr></table> <h2>The size of the graph (number of edges)</h2> <h3>Description</h3> <p><code>ecount</code> is an alias of this function. </p> <h3>Usage</h3> <pre> gsize(graph) </pre> <h3>Arguments</h3> <table summary="R argblock"> <tr valign="top"><td><code>graph</code></td> <td> <p>The graph.</p> </td></tr> </table> <h3>Value</h3> <p>Numeric scalar, the number of edges. </p> <h3>See Also</h3> <p>Other structural queries: <code><a href="sub-.igraph.html">[.igraph</a>()</code>, <code><a href="sub-sub-.igraph.html">[[.igraph</a>()</code>, <code><a href="adjacent_vertices.html">adjacent_vertices</a>()</code>, <code><a href="are_adjacent.html">are_adjacent</a>()</code>, <code><a href="ends.html">ends</a>()</code>, <code><a href="get.edge.ids.html">get.edge.ids</a>()</code>, <code><a href="gorder.html">gorder</a>()</code>, <code><a href="head_of.html">head_of</a>()</code>, <code><a href="incident_edges.html">incident_edges</a>()</code>, <code><a href="incident.html">incident</a>()</code>, <code><a href="is_directed.html">is_directed</a>()</code>, <code><a href="neighbors.html">neighbors</a>()</code>, <code><a href="tail_of.html">tail_of</a>()</code> </p> <h3>Examples</h3> <pre> 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() </pre> <hr /><div style="text-align: center;">[Package <em>igraph</em> version 1.3.5 <a href="00Index.html">Index</a>]</div> </body></html>