EVOLUTION-MANAGER
Edit File: edge.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: Helper function for adding and deleting edges</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 edge {igraph}"><tr><td>edge {igraph}</td><td style="text-align: right;">R Documentation</td></tr></table> <h2>Helper function for adding and deleting edges</h2> <h3>Description</h3> <p>This is a helper function that simplifies adding and deleting edges to/from graphs. </p> <h3>Usage</h3> <pre> edge(...) edges(...) </pre> <h3>Arguments</h3> <table summary="R argblock"> <tr valign="top"><td><code>...</code></td> <td> <p>See details below.</p> </td></tr> </table> <h3>Details</h3> <p><code>edges</code> is an alias for <code>edge</code>. </p> <p>When adding edges via <code>+</code>, all unnamed arguments of <code>edge</code> (or <code>edges</code>) are concatenated, and then passed to <code><a href="add_edges.html">add_edges</a></code>. They are interpreted as pairs of vertex ids, and an edge will added between each pair. Named arguments will be used as edge attributes for the new edges. </p> <p>When deleting edges via <code>-</code>, all arguments of <code>edge</code> (or <code>edges</code>) are concatenated via <code>c()</code> and passed to <code><a href="delete_edges.html">delete_edges</a></code>. </p> <h3>Value</h3> <p>A special object that can be used with together with igraph graphs and the plus and minus operators. </p> <h3>See Also</h3> <p>Other functions for manipulating graph structure: <code><a href="plus-.igraph.html">+.igraph</a>()</code>, <code><a href="add_edges.html">add_edges</a>()</code>, <code><a href="add_vertices.html">add_vertices</a>()</code>, <code><a href="delete_edges.html">delete_edges</a>()</code>, <code><a href="delete_vertices.html">delete_vertices</a>()</code>, <code><a href="igraph-minus.html">igraph-minus</a></code>, <code><a href="path.html">path</a>()</code>, <code><a href="vertex.html">vertex</a>()</code> </p> <h3>Examples</h3> <pre> g <- make_ring(10) %>% set_edge_attr("color", value = "red") g <- g + edge(1, 5, color = "green") + edge(2, 6, color = "blue") - edge("8|9") E(g)[[]] g %>% add_layout_(in_circle()) %>% plot() g <- make_ring(10) + edges(1:10) plot(g) </pre> <hr /><div style="text-align: center;">[Package <em>igraph</em> version 1.3.5 <a href="00Index.html">Index</a>]</div> </body></html>