DeleteEdges
DeleteEdges[g,edgeList]
gives graph g minus the list of edges edgeList. If g is undirected, then the edges in edgeList are treated as undirected edges; otherwise they are treated as directed edges. If there are multiple edges that qualify, then only one edge is deleted.
DeleteEdges[g,edgeList,All]
will delete all edges that qualify. If only one edge is to be deleted, then edgeList can have the form {s,t}; otherwise it has the form {{s1,t1},{s2,t2},…}.
Details and Options
- DeleteEdges functionality is now available in the built-in Wolfram Language function EdgeDelete.
- To use DeleteEdges, you first need to load the Combinatorica Package using Needs["Combinatorica`"].
Text
Wolfram Research (2012), DeleteEdges, Wolfram Language function, https://reference.wolfram.com/language/Combinatorica/ref/DeleteEdges.html.
CMS
Wolfram Language. 2012. "DeleteEdges." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/Combinatorica/ref/DeleteEdges.html.
APA
Wolfram Language. (2012). DeleteEdges. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/Combinatorica/ref/DeleteEdges.html