# delete_vertices

From igraph v1.0.1
by Gabor Csardi

##### Delete vertices from a graph

Delete vertices from a graph

##### Usage

`delete_vertices(graph, v)`

##### Arguments

- graph
The input graph.

- v
The vertices to remove, a vertex sequence.

##### Value

The graph, with the vertices removed.

##### See Also

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

;
`-.igraph`

, `igraph-minus`

;
`add.edges`

, `add_edges`

;
`add.vertices`

, `add_vertices`

;
`delete.edges`

, `delete_edges`

;
`edge`

, `edges`

;
`path`

; `vertex`

,
`vertices`

##### Examples

```
# NOT RUN {
g <- make_ring(10) %>%
set_vertex_attr("name", value = LETTERS[1:10])
g
V(g)
g2 <- delete_vertices(g, c(1,5)) %>%
delete_vertices("B")
g2
V(g2)
# }
```

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

### Community examples

Looks like there are no examples yet.