This is documentation for Mathematica 8, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)


makes a graph by deleting the vertex and all edges connected to v from the graph g.
deletes a collection of vertices from g.
deletes all vertices that match the pattern patt.
  • VertexDelete will delete the vertex v only if it is present in g.
Delete a vertex from a complete graph:
Delete a vertex from a complete graph:
Click for copyable input
VertexDelete works with undirected graphs:
Directed graphs:
Delete a set of vertices from the graph:
Use a pattern to delete a subset of vertices:
Works with large graphs:
New in 8