# vertex

##### Helper function for adding and deleting vertices

This is a helper function that simplifies adding and deleting vertices to/from graphs.

##### Usage

`vertex(...)`vertices(...)

##### Arguments

- ...
See details below.

##### Details

`vertices`

is an alias for `vertex`

.

When adding vertices via `+`

, all unnamed arguments are interpreted
as vertex names of the new vertices. Named arguments are interpreted as
vertex attributes for the new vertices.

When deleting vertices via `-`

, all arguments of `vertex`

(or
`vertices`

) are concatenated via `c()`

and passed to
`delete_vertices`

.

##### Value

A special object that can be used with together with igraph graphs and the plus and minus operators.

##### See Also

Other functions for manipulating graph structure: `+.igraph`

;
`-.igraph`

, `igraph-minus`

;
`add.edges`

, `add_edges`

;
`add.vertices`

, `add_vertices`

;
`delete.edges`

, `delete_edges`

;
`delete.vertices`

,
`delete_vertices`

; `edge`

,
`edges`

; `path`

##### Examples

```
# NOT RUN {
g <- make_(ring(10), with_vertex_(name = LETTERS[1:10])) +
vertices('X', 'Y')
g
plot(g)
# }
```

*Documentation reproduced from package igraph, version 1.0.1, License: GPL (>= 2)*