EVOLUTION-MANAGER
Edit File: print.igraph.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: Print graphs to the terminal</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 print.igraph {igraph}"><tr><td>print.igraph {igraph}</td><td style="text-align: right;">R Documentation</td></tr></table> <h2>Print graphs to the terminal</h2> <h3>Description</h3> <p>These functions attempt to print a graph to the terminal in a human readable form. </p> <h3>Usage</h3> <pre> ## S3 method for class 'igraph' print( x, full = igraph_opt("print.full"), graph.attributes = igraph_opt("print.graph.attributes"), vertex.attributes = igraph_opt("print.vertex.attributes"), edge.attributes = igraph_opt("print.edge.attributes"), names = TRUE, max.lines = igraph_opt("auto.print.lines"), ... ) ## S3 method for class 'igraph' summary(object, ...) </pre> <h3>Arguments</h3> <table summary="R argblock"> <tr valign="top"><td><code>x</code></td> <td> <p>The graph to print.</p> </td></tr> <tr valign="top"><td><code>full</code></td> <td> <p>Logical scalar, whether to print the graph structure itself as well.</p> </td></tr> <tr valign="top"><td><code>graph.attributes</code></td> <td> <p>Logical constant, whether to print graph attributes.</p> </td></tr> <tr valign="top"><td><code>vertex.attributes</code></td> <td> <p>Logical constant, whether to print vertex attributes.</p> </td></tr> <tr valign="top"><td><code>edge.attributes</code></td> <td> <p>Logical constant, whether to print edge attributes.</p> </td></tr> <tr valign="top"><td><code>names</code></td> <td> <p>Logical constant, whether to print symbolic vertex names (ie. the <code>name</code> vertex attribute) or vertex ids.</p> </td></tr> <tr valign="top"><td><code>max.lines</code></td> <td> <p>The maximum number of lines to use. The rest of the output will be truncated.</p> </td></tr> <tr valign="top"><td><code>...</code></td> <td> <p>Additional agruments.</p> </td></tr> <tr valign="top"><td><code>object</code></td> <td> <p>The graph of which the summary will be printed.</p> </td></tr> </table> <h3>Details</h3> <p><code>summary.igraph</code> prints the number of vertices, edges and whether the graph is directed. </p> <p><code>print_all</code> prints the same information, and also lists the edges, and optionally graph, vertex and/or edge attributes. </p> <p><code>print.igraph</code> behaves either as <code>summary.igraph</code> or <code>print_all</code> depending on the <code>full</code> argument. See also the ‘print.full’ igraph option and <code><a href="igraph_options.html">igraph_opt</a></code>. </p> <p>The graph summary printed by <code>summary.igraph</code> (and <code>print.igraph</code> and <code>print_all</code>) consists one or more lines. The first line contains the basic properties of the graph, and the rest contains its attributes. Here is an example, a small star graph with weighted directed edges and named vertices: </p> <pre> IGRAPH badcafe DNW- 10 9 -- In-star + attr: name (g/c), mode (g/c), center (g/n), name (v/c), weight (e/n) </pre> <p>The first line always starts with <code>IGRAPH</code>, showing you that the object is an igraph graph. Then a seven character code is printed, this the first seven characters of the unique id of the graph. See <code><a href="graph_id.html">graph_id</a></code> for more. Then a four letter long code string is printed. The first letter distinguishes between directed (‘<code>D</code>’) and undirected (‘<code>U</code>’) graphs. The second letter is ‘<code>N</code>’ for named graphs, i.e. graphs with the <code>name</code> vertex attribute set. The third letter is ‘<code>W</code>’ for weighted graphs, i.e. graphs with the <code>weight</code> edge attribute set. The fourth letter is ‘<code>B</code>’ for bipartite graphs, i.e. for graphs with the <code>type</code> vertex attribute set. </p> <p>Then, after two dashes, the name of the graph is printed, if it has one, i.e. if the <code>name</code> graph attribute is set. </p> <p>From the second line, the attributes of the graph are listed, separated by a comma. After the attribute names, the kind of the attribute – graph (‘<code>g</code>’), vertex (‘<code>v</code>’) or edge (‘<code>e</code>’) – is denoted, and the type of the attribute as well, character (‘<code>c</code>’), numeric (‘<code>n</code>’), logical (‘<code>l</code>’), or other (‘<code>x</code>’). </p> <p>As of igraph 0.4 <code>print_all</code> and <code>print.igraph</code> use the <code>max.print</code> option, see <code><a href="../../base/html/options.html">options</a></code> for details. </p> <p>As of igraph 1.1.1, the <code>str.igraph</code> function is defunct, use <code>print_all()</code>. </p> <h3>Value</h3> <p>All these functions return the graph invisibly. </p> <h3>Author(s)</h3> <p>Gabor Csardi <a href="mailto:csardi.gabor@gmail.com">csardi.gabor@gmail.com</a> </p> <h3>Examples</h3> <pre> g <- make_ring(10) g summary(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>