EVOLUTION-MANAGER
Edit File: 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 motifs {igraph}"><tr><td>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> motifs(graph, size = 3, cut.prob = rep(0, size)) </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 sizes 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> </table> <h3>Details</h3> <p><code>motifs</code> searches a graph for motifs of a given size and returns a numeric vector containing the number of different motifs. The order of the motifs is defined by their isomorphism class, see <code><a href="isomorphism_class.html">isomorphism_class</a></code>. </p> <h3>Value</h3> <p><code>motifs</code> returns a numeric vector, the number of occurrences of each motif in the graph. The motifs are ordered by their isomorphism classes. Note that for unconnected subgraphs, which are not considered to be motifs, the result will be <code>NA</code>. </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="sample_motifs.html">sample_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>