EVOLUTION-MANAGER
Edit File: V.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: Vertices 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 V {igraph}"><tr><td>V {igraph}</td><td style="text-align: right;">R Documentation</td></tr></table> <h2>Vertices of a graph</h2> <h3>Description</h3> <p>Create a vertex sequence (vs) containing all vertices of a graph. </p> <h3>Usage</h3> <pre> V(graph) </pre> <h3>Arguments</h3> <table summary="R argblock"> <tr valign="top"><td><code>graph</code></td> <td> <p>The graph</p> </td></tr> </table> <h3>Details</h3> <p>A vertex sequence is just what the name says it is: a sequence of vertices. Vertex sequences are usually used as igraph function arguments that refer to vertices of a graph. </p> <p>A vertex sequence is tied to the graph it refers to: it really denoted the specific vertices of that graph, and cannot be used together with another graph. </p> <p>At the implementation level, a vertex sequence is simply a vector containing numeric vertex ids, but it has a special class attribute which makes it possible to perform graph specific operations on it, like selecting a subset of the vertices based on graph structure, or vertex attributes. </p> <p>A vertex sequence is most often created by the <code>V()</code> function. The result of this includes all vertices in increasing vertex id order. A vertex sequence can be indexed by a numeric vector, just like a regular R vector. See <code><a href="igraph-vs-indexing.html">[.igraph.vs</a></code> and additional links to other vertex sequence operations below. </p> <h3>Value</h3> <p>A vertex sequence containing all vertices, in the order of their numeric vertex ids. </p> <h3>Indexing vertex sequences</h3> <p>Vertex sequences mostly behave like regular vectors, but there are some additional indexing operations that are specific for them; e.g. selecting vertices based on graph structure, or based on vertex attributes. See <code><a href="igraph-vs-indexing.html">[.igraph.vs</a></code> for details. </p> <h3>Querying or setting attributes</h3> <p>Vertex sequences can be used to query or set attributes for the vertices in the sequence. See <code><a href="igraph-vs-attributes.html">$.igraph.vs</a></code> for details. </p> <h3>See Also</h3> <p>Other vertex and edge sequences: <code><a href="E.html">E</a>()</code>, <code><a href="igraph-es-attributes.html">igraph-es-attributes</a></code>, <code><a href="igraph-es-indexing2.html">igraph-es-indexing2</a></code>, <code><a href="igraph-es-indexing.html">igraph-es-indexing</a></code>, <code><a href="igraph-vs-attributes.html">igraph-vs-attributes</a></code>, <code><a href="igraph-vs-indexing2.html">igraph-vs-indexing2</a></code>, <code><a href="igraph-vs-indexing.html">igraph-vs-indexing</a></code>, <code><a href="print.igraph.es.html">print.igraph.es</a>()</code>, <code><a href="print.igraph.vs.html">print.igraph.vs</a>()</code> </p> <h3>Examples</h3> <pre> # Vertex ids of an unnamed graph g <- make_ring(10) V(g) # Vertex ids of a named graph g2 <- make_ring(10) %>% set_vertex_attr("name", value = letters[1:10]) V(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>