|
SOLUTIONS
|
Mathematica
>
Mathematics and Algorithms
>
Graphs & Networks
>
Graph Operations and Modifications
>
EdgeDelete
BUILT-IN MATHEMATICA SYMBOL
EdgeDelete
EdgeDelete[g, e]
makes a graph by deleting the edge e from the graph g.
EdgeDelete[g, {e1, e2, ...}]
deletes a collection of edges from g.
EdgeDelete[g, patt]
deletes all edges that match the pattern patt.
DetailsDetails
- EdgeDelete[g, e] will delete the edge e only if it is present in g.
- An undirected edge can be specified using
or UndirectedEdge[v, w]. - A directed edge can be specified using
or DirectedEdge[v, w].
ExamplesExamplesopen allclose all
Basic Examples (1)Basic Examples (1)
Delete an edge 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 »


