EVOLUTION-MANAGER
Edit File: layout_with_gem.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: The GEM layout algorithm</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 layout_with_gem {igraph}"><tr><td>layout_with_gem {igraph}</td><td style="text-align: right;">R Documentation</td></tr></table> <h2>The GEM layout algorithm</h2> <h3>Description</h3> <p>Place vertices on the plane using the GEM force-directed layout algorithm. </p> <h3>Usage</h3> <pre> layout_with_gem( graph, coords = NULL, maxiter = 40 * vcount(graph)^2, temp.max = max(vcount(graph), 1), temp.min = 1/10, temp.init = sqrt(max(vcount(graph), 1)) ) with_gem(...) </pre> <h3>Arguments</h3> <table summary="R argblock"> <tr valign="top"><td><code>graph</code></td> <td> <p>The input graph. Edge directions are ignored.</p> </td></tr> <tr valign="top"><td><code>coords</code></td> <td> <p>If not <code>NULL</code>, then the starting coordinates should be given here, in a two or three column matrix, depending on the <code>dim</code> argument.</p> </td></tr> <tr valign="top"><td><code>maxiter</code></td> <td> <p>The maximum number of iterations to perform. Updating a single vertex counts as an iteration. A reasonable default is 40 * n * n, where n is the number of vertices. The original paper suggests 4 * n * n, but this usually only works if the other parameters are set up carefully.</p> </td></tr> <tr valign="top"><td><code>temp.max</code></td> <td> <p>The maximum allowed local temperature. A reasonable default is the number of vertices.</p> </td></tr> <tr valign="top"><td><code>temp.min</code></td> <td> <p>The global temperature at which the algorithm terminates (even before reaching <code>maxiter</code> iterations). A reasonable default is 1/10.</p> </td></tr> <tr valign="top"><td><code>temp.init</code></td> <td> <p>Initial local temperature of all vertices. A reasonable default is the square root of the number of vertices.</p> </td></tr> <tr valign="top"><td><code>...</code></td> <td> <p>Passed to <code>layout_with_gem</code>.</p> </td></tr> </table> <h3>Details</h3> <p>See the referenced paper below for the details of the algorithm. </p> <h3>Value</h3> <p>A numeric matrix with two columns, and as many rows as the number of vertices. </p> <h3>Author(s)</h3> <p>Gabor Csardi <a href="mailto:csardi.gabor@gmail.com">csardi.gabor@gmail.com</a> </p> <h3>References</h3> <p>Arne Frick, Andreas Ludwig, Heiko Mehldau: A Fast Adaptive Layout Algorithm for Undirected Graphs, <em>Proc. Graph Drawing 1994</em>, LNCS 894, pp. 388-403, 1995. </p> <h3>See Also</h3> <p><code><a href="layout_with_fr.html">layout_with_fr</a></code>, <code><a href="plot.igraph.html">plot.igraph</a></code>, <code><a href="tkplot.html">tkplot</a></code> </p> <p>Other graph layouts: <code><a href="add_layout_.html">add_layout_</a>()</code>, <code><a href="component_wise.html">component_wise</a>()</code>, <code><a href="layout_as_bipartite.html">layout_as_bipartite</a>()</code>, <code><a href="layout_as_star.html">layout_as_star</a>()</code>, <code><a href="layout_as_tree.html">layout_as_tree</a>()</code>, <code><a href="layout_in_circle.html">layout_in_circle</a>()</code>, <code><a href="layout_nicely.html">layout_nicely</a>()</code>, <code><a href="layout_on_grid.html">layout_on_grid</a>()</code>, <code><a href="layout_on_sphere.html">layout_on_sphere</a>()</code>, <code><a href="layout_randomly.html">layout_randomly</a>()</code>, <code><a href="layout_with_dh.html">layout_with_dh</a>()</code>, <code><a href="layout_with_fr.html">layout_with_fr</a>()</code>, <code><a href="layout_with_graphopt.html">layout_with_graphopt</a>()</code>, <code><a href="layout_with_kk.html">layout_with_kk</a>()</code>, <code><a href="layout_with_lgl.html">layout_with_lgl</a>()</code>, <code><a href="layout_with_mds.html">layout_with_mds</a>()</code>, <code><a href="layout_with_sugiyama.html">layout_with_sugiyama</a>()</code>, <code><a href="layout_.html">layout_</a>()</code>, <code><a href="merge_coords.html">merge_coords</a>()</code>, <code><a href="norm_coords.html">norm_coords</a>()</code>, <code><a href="normalize.html">normalize</a>()</code> </p> <h3>Examples</h3> <pre> set.seed(42) g <- make_ring(10) plot(g, layout=layout_with_gem) </pre> <hr /><div style="text-align: center;">[Package <em>igraph</em> version 1.3.5 <a href="00Index.html">Index</a>]</div> </body></html>