powered by
Delete vertices from a graph
delete_vertices(graph, v)
The input graph.
The vertices to remove, a vertex sequence.
The graph, with the vertices removed.
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
+.igraph
-.igraph
igraph-minus
add.edges
add_edges
add.vertices
add_vertices
delete.edges
delete_edges
edge
edges
path
vertex
vertices
# 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) # }
Run the code above in your browser using DataLab