EVOLUTION-MANAGER
Edit File: reverse_edges.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: Reverse edges in a 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 reverse_edges {igraph}"><tr><td>reverse_edges {igraph}</td><td style="text-align: right;">R Documentation</td></tr></table> <h2>Reverse edges in a graph</h2> <h3>Description</h3> <p>The new graph will contain the same vertices, edges and attributes as the original graph, except that the direction of the edges selected by their edge IDs in the <code>eids</code> argument will be reversed. When reversing all edges, this operation is also known as graph transpose. </p> <h3>Usage</h3> <pre> reverse_edges(graph, eids = E(graph)) ## S3 method for class 'igraph' t(x) </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>The edge IDs of the edges to reverse.</p> </td></tr> <tr valign="top"><td><code>x</code></td> <td> <p>The input graph.</p> </td></tr> </table> <h3>Value</h3> <p>The result graph where the direction of the edges with the given IDs are reversed </p> <h3>Examples</h3> <pre> g <- make_graph( ~ 1-+2, 2-+3, 3-+4 ) reverse_edges(g, 2) </pre> <hr /><div style="text-align: center;">[Package <em>igraph</em> version 1.3.5 <a href="00Index.html">Index</a>]</div> </body></html>