EVOLUTION-MANAGER
Edit File: as_long_data_frame.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: Convert a graph to a long data frame</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_long_data_frame {igraph}"><tr><td>as_long_data_frame {igraph}</td><td style="text-align: right;">R Documentation</td></tr></table> <h2>Convert a graph to a long data frame</h2> <h3>Description</h3> <p>A long data frame contains all metadata about both the vertices and edges of the graph. It contains one row for each edge, and all metadata about that edge and its incident vertices are included in that row. The names of the columns that contain the metadata of the incident vertices are prefixed with <code>from_</code> and <code>to_</code>. The first two columns are always named <code>from</code> and <code>to</code> and they contain the numeric ids of the incident vertices. The rows are listed in the order of numeric vertex ids. </p> <h3>Usage</h3> <pre> as_long_data_frame(graph) </pre> <h3>Arguments</h3> <table summary="R argblock"> <tr valign="top"><td><code>graph</code></td> <td> <p>Input graph</p> </td></tr> </table> <h3>Value</h3> <p>A long data frame. </p> <h3>Examples</h3> <pre> g <- make_(ring(10), with_vertex_(name = letters[1:10], color = "red"), with_edge_(weight = 1:10, color = "green") ) as_long_data_frame(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>