Skip to contents

Concatenate vertex sequences

Usage

# 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.

Examples

g <- make_(ring(10), with_vertex_(name = LETTERS[1:10]))
c(V(g)[1], V(g)["A"], V(g)[1:4])
#> + 6/10 vertices, named, from 7b87d41:
#> [1] A A A B C D