EVOLUTION-MANAGER
Edit File: as_adj_list.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: Adjacency lists</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 as_adj_list {igraph}"><tr><td>as_adj_list {igraph}</td><td style="text-align: right;">R Documentation</td></tr></table> <h2>Adjacency lists</h2> <h3>Description</h3> <p>Create adjacency lists from a graph, either for adjacent edges or for neighboring vertices </p> <h3>Usage</h3> <pre> as_adj_list(graph, mode = c("all", "out", "in", "total")) as_adj_edge_list(graph, mode = c("all", "out", "in", "total")) </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>mode</code></td> <td> <p>Character scalar, it gives what kind of adjacent edges/vertices to include in the lists. ‘<code>out</code>’ is for outgoing edges/vertices, ‘<code>in</code>’ is for incoming edges/vertices, ‘<code>all</code>’ is for both. This argument is ignored for undirected graphs.</p> </td></tr> </table> <h3>Details</h3> <p><code>as_adj_list</code> returns a list of numeric vectors, which include the ids of neighbor vertices (according to the <code>mode</code> argument) of all vertices. </p> <p><code>as_adj_edge_list</code> returns a list of numeric vectors, which include the ids of adjacent edgs (according to the <code>mode</code> argument) of all vertices. </p> <p>If <code>igraph_opt("return.vs.es")</code> is true (default), the numeric vectors of the adjacency lists are coerced to <code>igraph.vs</code>, this can be a very expensive operation on large graphs. </p> <h3>Value</h3> <p>A list of <code>igraph.vs</code> or a list of numeric vectors depending on the value of <code>igraph_opt("return.vs.es")</code>, see details for performance characteristics. </p> <h3>Author(s)</h3> <p>Gabor Csardi <a href="mailto:csardi.gabor@gmail.com">csardi.gabor@gmail.com</a> </p> <h3>See Also</h3> <p><code><a href="as_edgelist.html">as_edgelist</a></code>, <code><a href="as_adjacency_matrix.html">as_adj</a></code> </p> <h3>Examples</h3> <pre> g <- make_ring(10) as_adj_list(g) as_adj_edge_list(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>