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

VertexDelete

VertexDelete
makes a graph by deleting the vertex and all edges connected to v from the graph g.
VertexDelete
deletes a collection of vertices from g.
VertexDelete
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:
In[1]:=
Click for copyable input
Out[1]=
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