EVOLUTION-MANAGER
Edit File: graph_id.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: Get the id 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 graph_id {igraph}"><tr><td>graph_id {igraph}</td><td style="text-align: right;">R Documentation</td></tr></table> <h2>Get the id of a graph</h2> <h3>Description</h3> <p>Graph ids are used to check that a vertex or edge sequence belongs to a graph. If you create a new graph by changing the structure of a graph, the new graph will have a new id. Changing the attributes will not change the id. </p> <h3>Usage</h3> <pre> graph_id(x, ...) </pre> <h3>Arguments</h3> <table summary="R argblock"> <tr valign="top"><td><code>x</code></td> <td> <p>A graph or a vertex sequence or an edge sequence.</p> </td></tr> <tr valign="top"><td><code>...</code></td> <td> <p>Not used currently.</p> </td></tr> </table> <h3>Value</h3> <p>The id of the graph, a character scalar. For vertex and edge sequences the id of the graph they were created from. </p> <h3>Examples</h3> <pre> g <- make_ring(10) graph_id(g) graph_id(V(g)) graph_id(E(g)) g2 <- g + 1 graph_id(g2) </pre> <hr /><div style="text-align: center;">[Package <em>igraph</em> version 1.3.5 <a href="00Index.html">Index</a>]</div> </body></html>