|
SOLUTIONS
|
Mathematica
>
Mathematics and Algorithms
>
Graphs & Networks
>
Graph Operations and Modifications
>
VertexDelete
BUILT-IN MATHEMATICA SYMBOL
VertexDelete
VertexDelete[g, v]
makes a graph by deleting the vertex
and all edges connected to v from the graph g.
VertexDelete[g, {v1, v2, ...}]
deletes a collection of vertices from g.
VertexDelete[g, patt]
deletes all vertices that match the pattern patt.
DetailsDetails
- VertexDelete[g, v] will delete the vertex v only if it is present in g.
ExamplesExamplesopen allclose all
Basic Examples (1)Basic Examples (1)
Delete a vertex from a complete graph:
| In[1]:= |
| Out[1]= | ![]() |
New in 8
Mathematica 9 is now available!
New to Mathematica?
Find your learning path »
Have a question?
Ask support »


