print.igraph.es | R Documentation |
For long edge sequences, the printing is truncated to fit to the
screen. Use print()
explicitly and the full
argument to
see the full sequence.
## S3 method for class 'igraph.es'
print(x, full = igraph_opt("print.full"), id = igraph_opt("print.id"), ...)
x |
An edge sequence. |
full |
Whether to show the full sequence, or truncate the output to the screen size. |
id |
Whether to print the graph ID. |
... |
Currently ignored. |
Edge sequences created with the double bracket operator are printed differently, together with all attributes of the edges in the sequence, as a table.
The edge sequence, invisibly.
Other vertex and edge sequences:
E()
,
V()
,
as_ids()
,
igraph-es-attributes
,
igraph-es-indexing
,
igraph-es-indexing2
,
igraph-vs-attributes
,
igraph-vs-indexing
,
igraph-vs-indexing2
,
print.igraph.vs()
# Unnamed graphs
g <- make_ring(10)
E(g)
# Named graphs
g2 <- make_ring(10) %>%
set_vertex_attr("name", value = LETTERS[1:10])
E(g2)
# All edges in a long sequence
g3 <- make_ring(200)
E(g3)
E(g3) %>% print(full = TRUE)
# Metadata
g4 <- make_ring(10) %>%
set_vertex_attr("name", value = LETTERS[1:10]) %>%
set_edge_attr("weight", value = 1:10) %>%
set_edge_attr("color", value = "green")
E(g4)
E(g4)[[]]
E(g4)[[1:5]]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.