如果您从 R 中使用 igraph,请使用此选项
intersection.igraph.vs {igraph} | R 文档 |
顶点序列的交集
## S3 method for class 'igraph.vs'
intersection(...)
... |
要取交集的顶点序列。 |
它们必须属于同一个图。请注意,此函数具有“集合”语义,并且顶点在结果中的重数会丢失。
一个顶点序列,包含所有给定序列中出现的顶点,每个顶点仅出现一次。
其他顶点和边序列操作: c.igraph.es()
, c.igraph.vs()
, difference.igraph.es()
, difference.igraph.vs()
, igraph-es-indexing2
, igraph-es-indexing
, igraph-vs-indexing2
, igraph-vs-indexing
, intersection.igraph.es()
, 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]))
intersection(E(g)[1:6], E(g)[5:9])