EVOLUTION-MANAGER
Edit File: as_graphnel.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 igraph graphs to graphNEL objects from the 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 as_graphnel {igraph}"><tr><td>as_graphnel {igraph}</td><td style="text-align: right;">R Documentation</td></tr></table> <h2>Convert igraph graphs to graphNEL objects from the graph package</h2> <h3>Description</h3> <p>The graphNEL class is defined in the <code>graph</code> package, it is another way to represent graphs. These functions are provided to convert between the igraph and the graphNEL objects. </p> <h3>Usage</h3> <pre> as_graphnel(graph) </pre> <h3>Arguments</h3> <table summary="R argblock"> <tr valign="top"><td><code>graph</code></td> <td> <p>An igraph graph object.</p> </td></tr> </table> <h3>Details</h3> <p><code>as_graphnel</code> converts an igraph graph to a graphNEL graph. It converts all graph/vertex/edge attributes. If the igraph graph has a vertex attribute ‘<code>name</code>’, then it will be used to assign vertex names in the graphNEL graph. Otherwise numeric igraph vertex ids will be used for this purpose. </p> <h3>Value</h3> <p><code>as_graphnel</code> returns a graphNEL graph object. </p> <h3>See Also</h3> <p><code><a href="graph_from_graphnel.html">graph_from_graphnel</a></code> for the other direction, <code><a href="as_adjacency_matrix.html">as_adj</a></code>, <code><a href="graph_from_adjacency_matrix.html">graph_from_adjacency_matrix</a></code>, <code><a href="as_adj_list.html">as_adj_list</a></code> and <code><a href="graph_from_adj_list.html">graph.adjlist</a></code> for other graph representations. </p> <h3>Examples</h3> <pre> ## Undirected ## Not run: g <- make_ring(10) V(g)$name <- letters[1:10] GNEL <- as_graphnel(g) g2 <- graph_from_graphnel(GNEL) g2 ## Directed g3 <- make_star(10, mode="in") V(g3)$name <- letters[1:10] GNEL2 <- as_graphnel(g3) g4 <- graph_from_graphnel(GNEL2) g4 ## End(Not run) </pre> <hr /><div style="text-align: center;">[Package <em>igraph</em> version 1.3.5 <a href="00Index.html">Index</a>]</div> </body></html>