c.igraph.vs: Concatenate vertex sequences

Description Usage Arguments Value See Also Examples

View source: R/iterators.R

Description

Concatenate vertex sequences

Usage

1
2
## S3 method for class 'igraph.vs'
c(..., recursive = FALSE)

Arguments

...

The vertex sequences to concatenate. They must refer to the same graph.

recursive

Ignored, included for S3 compatibility with the base c function.

Value

A vertex sequence, the input sequences concatenated.

See Also

Other vertex and edge sequence operations: c.igraph.es(), difference.igraph.es(), difference.igraph.vs(), igraph-es-indexing2, 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()

Examples

1
2
g <- make_(ring(10), with_vertex_(name = LETTERS[1:10]))
c(V(g)[1], V(g)['A'], V(g)[1:4])

Example output

Attaching package: 'igraph'

The following objects are masked from 'package:stats':

    decompose, spectrum

The following object is masked from 'package:base':

    union

+ 6/10 vertices, named, from e068ea0:
[1] A A A B C D

igraph documentation built on March 19, 2020, 5:13 p.m.

Related to c.igraph.vs in igraph...