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.

EdgeDelete[{vw,},]
uses rules vw to specify the graph g.

DetailsDetails

  • EdgeDelete[g,e] will delete the edge e only if it is present in g.
  • An undirected edge can be specified using vw or UndirectedEdge[v,w].
  • A directed edge can be specified using vw or DirectedEdge[v,w].
Introduced in 2010
(8.0)
| Updated in 2015
(10.3)
Translate this page: