EVOLUTION-MANAGER
Edit File: delete_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: Delete edges from 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 delete_edges {igraph}"><tr><td>delete_edges {igraph}</td><td style="text-align: right;">R Documentation</td></tr></table> <h2>Delete edges from a graph</h2> <h3>Description</h3> <p>Delete edges from a graph </p> <h3>Usage</h3> <pre> delete_edges(graph, edges) </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>edges</code></td> <td> <p>The edges to remove, specified as an edge sequence. Typically this is either a numeric vector containing edge IDs, or a character vector containing the IDs or names of the source and target vertices, separated by <code>|</code></p> </td></tr> </table> <h3>Value</h3> <p>The graph, with the edges removed. </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_vertices.html">delete_vertices</a>()</code>, <code><a href="edge.html">edge</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) %>% delete_edges(seq(1, 9, by = 2)) g g <- make_ring(10) %>% delete_edges("10|1") g g <- make_ring(5) g <- delete_edges(g, get.edge.ids(g, c(1,5, 4,5))) 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>