## 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, ...)
name vertex attribute) or vertex ids.summary.igraph prints the number of vertices, edges and whether the
graph is directed.str.igraph prints the same information, and also lists the edges, and
optionally graph, vertex and/or edge attributes.
print.igraph behaves either as summary.igraph or
str.igraph depending on the full argument. See also the
igraph_opt.
The graph summary printed by summary.igraph (and print.igraph
and str.igraph) 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 weighed directed edges and named
vertices: IGRAPH DNW- 10 9 -- In-star
+ attr: name (g/c), mode (g/c), center (g/n), name (v/c),
weight (e/n)
The first line always
starts with IGRAPH, showing you that the object is an igraph graph.
Then a four letter long code string is printed. The first letter
distinguishes between directed (DUNname vertex attribute set. The third
letter is Wweight edge attribute set. The fourth letter is Btype vertex attribute set.
Then, after two dashes, the name of the graph is printed, if it has one,
i.e. if the name graph attribute is set.
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
(gvecnlx
As of igraph 0.4 str.igraph and print.igraph use the
max.print option, see options for details.
g <- make_ring(10)
g
summary(g)Run the code above in your browser using DataLab