print.igraph: Print graphs to the terminal
Description
These functions attempt to print a graph to the terminal in
a human readable form.Usage
## S3 method for class 'igraph':
print(x, graph.attributes=FALSE,
vertex.attributes=FALSE, edge.attributes=FALSE, \dots)
## S3 method for class 'igraph':
summary(object, \dots)
Arguments
graph.attributes
Logical constant, whether to print graph attributes.
vertex.attributes
Logical constant, whether to print vertex attributes.
edge.attributes
Logical constant, whether to print edge attributes.
object
The graph of which the summary will be printed.
Value
- Both functions return the graph invisibly.
Details
summary.igraph
prints the number of vertices, edges and whether the
graph is directed.
print.igraph
prints the same information, aand also lists
the edges, and optionally graph, vertex and/or edge attributes.Examples
Run this codeg <- graph.ring(10)
g
summary(g)
Run the code above in your browser using DataLab