EVOLUTION-MANAGER
Edit File: which_mutual.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: Find mutual edges in a directed graph</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 which_mutual {igraph}"><tr><td>which_mutual {igraph}</td><td style="text-align: right;">R Documentation</td></tr></table> <h2>Find mutual edges in a directed graph</h2> <h3>Description</h3> <p>This function checks the reciprocal pair of the supplied edges. </p> <h3>Usage</h3> <pre> which_mutual(graph, eids = E(graph)) </pre> <h3>Arguments</h3> <table summary="R argblock"> <tr valign="top"><td><code>graph</code></td> <td> <p>The input graph.</p> </td></tr> <tr valign="top"><td><code>eids</code></td> <td> <p>Edge sequence, the edges that will be probed. By default is includes all edges in the order of their ids.</p> </td></tr> </table> <h3>Details</h3> <p>In a directed graph an (A,B) edge is mutual if the graph also includes a (B,A) directed edge. </p> <p>Note that multi-graphs are not handled properly, i.e. if the graph contains two copies of (A,B) and one copy of (B,A), then these three edges are considered to be mutual. </p> <p>Undirected graphs contain only mutual edges by definition. </p> <h3>Value</h3> <p>A logical vector of the same length as the number of edges supplied. </p> <h3>Author(s)</h3> <p>Gabor Csardi <a href="mailto:csardi.gabor@gmail.com">csardi.gabor@gmail.com</a> </p> <h3>See Also</h3> <p><code><a href="reciprocity.html">reciprocity</a></code>, <code><a href="dyad_census.html">dyad_census</a></code> if you just want some statistics about mutual edges. </p> <h3>Examples</h3> <pre> g <- sample_gnm(10, 50, directed=TRUE) reciprocity(g) dyad_census(g) which_mutual(g) sum(which_mutual(g))/2 == dyad_census(g)$mut </pre> <hr /><div style="text-align: center;">[Package <em>igraph</em> version 1.3.5 <a href="00Index.html">Index</a>]</div> </body></html>