如果您从 R 中使用 igraph,请使用此选项
print.igraph.es {igraph} | R 文档 |
对于较长的边序列,打印将被截断以适应屏幕。显式使用 print
和 codefull 参数来查看完整的序列。
## S3 method for class 'igraph.es'
print(x, full = igraph_opt("print.full"), ...)
x |
一个边序列。 |
full |
是否显示完整序列,或者截断输出以适应屏幕大小。 |
... |
当前被忽略。 |
使用双括号运算符创建的边序列以不同的方式打印,连同序列中边的所有属性,作为一个表格。
边序列,不可见。
其他顶点和边序列:E()
, V()
, igraph-es-attributes
, igraph-es-indexing2
, igraph-es-indexing
, igraph-vs-attributes
, igraph-vs-indexing2
, igraph-vs-indexing
, 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]]