EVOLUTION-MANAGER
Edit File: sample_gnp.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: Generate random graphs according to the G(n,p) Erdos-Renyi...</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 sample_gnp {igraph}"><tr><td>sample_gnp {igraph}</td><td style="text-align: right;">R Documentation</td></tr></table> <h2>Generate random graphs according to the G(n,p) Erdos-Renyi model</h2> <h3>Description</h3> <p>This model is very simple, every possible edge is created with the same constant probability. </p> <h3>Usage</h3> <pre> sample_gnp(n, p, directed = FALSE, loops = FALSE) gnp(...) </pre> <h3>Arguments</h3> <table summary="R argblock"> <tr valign="top"><td><code>n</code></td> <td> <p>The number of vertices in the graph.</p> </td></tr> <tr valign="top"><td><code>p</code></td> <td> <p>The probability for drawing an edge between two arbitrary vertices (G(n,p) graph).</p> </td></tr> <tr valign="top"><td><code>directed</code></td> <td> <p>Logical, whether the graph will be directed, defaults to FALSE.</p> </td></tr> <tr valign="top"><td><code>loops</code></td> <td> <p>Logical, whether to add loop edges, defaults to FALSE.</p> </td></tr> <tr valign="top"><td><code>...</code></td> <td> <p>Passed to <code>sample_gnp</code>.</p> </td></tr> </table> <h3>Details</h3> <p>The graph has ‘n’ vertices and for each edge the probability that it is present in the graph is ‘p’. </p> <h3>Value</h3> <p>A graph object. </p> <h3>Author(s)</h3> <p>Gabor Csardi <a href="mailto:csardi.gabor@gmail.com">csardi.gabor@gmail.com</a> </p> <h3>References</h3> <p>Erdos, P. and Renyi, A., On random graphs, <em>Publicationes Mathematicae</em> 6, 290–297 (1959). </p> <h3>See Also</h3> <p><code><a href="sample_gnm.html">sample_gnm</a></code>, <code><a href="sample_pa.html">sample_pa</a></code> </p> <h3>Examples</h3> <pre> g <- sample_gnp(1000, 1/1000) degree_distribution(g) </pre> <hr /><div style="text-align: center;">[Package <em>igraph</em> version 1.3.5 <a href="00Index.html">Index</a>]</div> </body></html>