EVOLUTION-MANAGER
Edit File: sample_motifs.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: Graph motifs</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_motifs {igraph}"><tr><td>sample_motifs {igraph}</td><td style="text-align: right;">R Documentation</td></tr></table> <h2>Graph motifs</h2> <h3>Description</h3> <p>Graph motifs are small connected subgraphs with a well-defined structure. These functions search a graph for various motifs. </p> <h3>Usage</h3> <pre> sample_motifs( graph, size = 3, cut.prob = rep(0, size), sample.size = vcount(graph)/10, sample = NULL ) </pre> <h3>Arguments</h3> <table summary="R argblock"> <tr valign="top"><td><code>graph</code></td> <td> <p>Graph object, the input graph.</p> </td></tr> <tr valign="top"><td><code>size</code></td> <td> <p>The size of the motif, currently size 3 and 4 are supported in directed graphs and sizes 3-6 in undirected graphs.</p> </td></tr> <tr valign="top"><td><code>cut.prob</code></td> <td> <p>Numeric vector giving the probabilities that the search graph is cut at a certain level. Its length should be the same as the size of the motif (the <code>size</code> argument). By default no cuts are made.</p> </td></tr> <tr valign="top"><td><code>sample.size</code></td> <td> <p>The number of vertices to use as a starting point for finding motifs. Only used if the <code>sample</code> argument is <code>NULL</code>.</p> </td></tr> <tr valign="top"><td><code>sample</code></td> <td> <p>If not <code>NULL</code> then it specifies the vertices to use as a starting point for finding motifs.</p> </td></tr> </table> <h3>Details</h3> <p><code>sample_motifs</code> estimates the total number of motifs of a given size in a graph based on a sample. </p> <h3>Value</h3> <p>A numeric scalar, an estimate for the total number of motifs in the graph. </p> <h3>See Also</h3> <p><code><a href="isomorphism_class.html">isomorphism_class</a></code> </p> <p>Other graph motifs: <code><a href="count_motifs.html">count_motifs</a>()</code>, <code><a href="motifs.html">motifs</a>()</code> </p> <h3>Examples</h3> <pre> g <- barabasi.game(100) motifs(g, 3) count_motifs(g, 3) sample_motifs(g, 3) </pre> <hr /><div style="text-align: center;">[Package <em>igraph</em> version 1.3.5 <a href="00Index.html">Index</a>]</div> </body></html>