EVOLUTION-MANAGER
Edit File: complementer.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: Complementer of 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 complementer {igraph}"><tr><td>complementer {igraph}</td><td style="text-align: right;">R Documentation</td></tr></table> <h2>Complementer of a graph</h2> <h3>Description</h3> <p>A complementer graph contains all edges that were not present in the input graph. </p> <h3>Usage</h3> <pre> complementer(graph, loops = FALSE) </pre> <h3>Arguments</h3> <table summary="R argblock"> <tr valign="top"><td><code>graph</code></td> <td> <p>The input graph, can be directed or undirected.</p> </td></tr> <tr valign="top"><td><code>loops</code></td> <td> <p>Logical constant, whether to generate loop edges.</p> </td></tr> </table> <h3>Details</h3> <p><code>complementer</code> creates the complementer of a graph. Only edges which are <em>not</em> present in the original graph will be included in the new graph. </p> <p><code>complementer</code> keeps graph and vertex attriubutes, edge attributes are lost. </p> <h3>Value</h3> <p>A new graph object. </p> <h3>Author(s)</h3> <p>Gabor Csardi <a href="mailto:csardi.gabor@gmail.com">csardi.gabor@gmail.com</a> </p> <h3>Examples</h3> <pre> ## Complementer of a ring g <- make_ring(10) complementer(g) ## A graph and its complementer give together the full graph g <- make_ring(10) gc <- complementer(g) gu <- union(g, gc) gu graph.isomorphic(gu, make_full_graph(vcount(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>