EVOLUTION-MANAGER
Edit File: subgraph_isomorphisms.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: All isomorphic mappings between a graph and subgraphs of...</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 subgraph_isomorphisms {igraph}"><tr><td>subgraph_isomorphisms {igraph}</td><td style="text-align: right;">R Documentation</td></tr></table> <h2>All isomorphic mappings between a graph and subgraphs of another graph</h2> <h3>Description</h3> <p>All isomorphic mappings between a graph and subgraphs of another graph </p> <h3>Usage</h3> <pre> subgraph_isomorphisms(pattern, target, method = c("lad", "vf2"), ...) </pre> <h3>Arguments</h3> <table summary="R argblock"> <tr valign="top"><td><code>pattern</code></td> <td> <p>The smaller graph, it might be directed or undirected. Undirected graphs are treated as directed graphs with mutual edges.</p> </td></tr> <tr valign="top"><td><code>target</code></td> <td> <p>The bigger graph, it might be directed or undirected. Undirected graphs are treated as directed graphs with mutual edges.</p> </td></tr> <tr valign="top"><td><code>method</code></td> <td> <p>The method to use. Possible values: ‘auto’, ‘lad’, ‘vf2’. See their details below.</p> </td></tr> <tr valign="top"><td><code>...</code></td> <td> <p>Additional arguments, passed to the various methods.</p> </td></tr> </table> <h3>Value</h3> <p>A list of vertex sequences, corresponding to all mappings from the first graph to the second. </p> <h3>‘lad’ method</h3> <p>This is the LAD algorithm by Solnon, see the reference below. It has the following extra arguments: </p> <dl> <dt>domains</dt><dd><p>If not <code>NULL</code>, then it specifies matching restrictions. It must be a list of <code>target</code> vertex sets, given as numeric vertex ids or symbolic vertex names. The length of the list must be <code>vcount(pattern)</code> and for each vertex in <code>pattern</code> it gives the allowed matching vertices in <code>target</code>. Defaults to <code>NULL</code>.</p> </dd> <dt>induced</dt><dd><p>Logical scalar, whether to search for an induced subgraph. It is <code>FALSE</code> by default.</p> </dd> <dt>time.limit</dt><dd><p>The processor time limit for the computation, in seconds. It defaults to <code>Inf</code>, which means no limit.</p> </dd> </dl> <h3>‘vf2’ method</h3> <p>This method uses the VF2 algorithm by Cordella, Foggia et al., see references below. It supports vertex and edge colors and have the following extra arguments: </p> <dl> <dt>vertex.color1, vertex.color2</dt><dd><p>Optional integer vectors giving the colors of the vertices for colored graph isomorphism. If they are not given, but the graph has a “color” vertex attribute, then it will be used. If you want to ignore these attributes, then supply <code>NULL</code> for both of these arguments. See also examples below.</p> </dd> <dt>edge.color1, edge.color2</dt><dd><p>Optional integer vectors giving the colors of the edges for edge-colored (sub)graph isomorphism. If they are not given, but the graph has a “color” edge attribute, then it will be used. If you want to ignore these attributes, then supply <code>NULL</code> for both of these arguments.</p> </dd> </dl> <h3>See Also</h3> <p>Other graph isomorphism: <code><a href="count_isomorphisms.html">count_isomorphisms</a>()</code>, <code><a href="count_subgraph_isomorphisms.html">count_subgraph_isomorphisms</a>()</code>, <code><a href="graph_from_isomorphism_class.html">graph_from_isomorphism_class</a>()</code>, <code><a href="isomorphic.html">isomorphic</a>()</code>, <code><a href="isomorphism_class.html">isomorphism_class</a>()</code>, <code><a href="isomorphisms.html">isomorphisms</a>()</code>, <code><a href="subgraph_isomorphic.html">subgraph_isomorphic</a>()</code> </p> <hr /><div style="text-align: center;">[Package <em>igraph</em> version 1.3.5 <a href="00Index.html">Index</a>]</div> </body></html>