如果您从 R 中使用 igraph,请使用此选项
igraph-es-indexing2 {igraph} | R 文档 |
双中括号运算符可以用于边序列,以打印序列中边的元数据(边属性)。
## S3 method for class 'igraph.es'
x[[...]]
x |
一个边序列。 |
... |
传递给 |
从技术上讲,当与边序列一起使用时,双中括号运算符与单中括号运算符的作用完全相同,但生成的边序列的打印方式不同:边序列中的所有属性也会被打印出来。
有关索引边序列的更多信息,请参阅[.igraph.es
。
另一个边序列,启用了元数据打印。 请参见以下详细信息。
其他顶点和边序列:E()
,V()
,igraph-es-attributes
,igraph-es-indexing
,igraph-vs-attributes
,igraph-vs-indexing2
,igraph-vs-indexing
,print.igraph.es()
,print.igraph.vs()
其他顶点和边序列操作:c.igraph.es()
,c.igraph.vs()
,difference.igraph.es()
,difference.igraph.vs()
,igraph-es-indexing
,igraph-vs-indexing2
,igraph-vs-indexing
,intersection.igraph.es()
,intersection.igraph.vs()
,rev.igraph.es()
,rev.igraph.vs()
,union.igraph.es()
,union.igraph.vs()
,unique.igraph.es()
,unique.igraph.vs()
g <- make_(ring(10),
with_vertex_(name = LETTERS[1:10]),
with_edge_(weight = 1:10, color = "green"))
E(g)
E(g)[[]]
E(g)[[.inc('A')]]