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},…}.
更多信息和选项
- 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`"].
文本
Wolfram Research (2012),DeleteEdges,Wolfram 语言函数,https://reference.wolfram.com/language/Combinatorica/ref/DeleteEdges.html.
CMS
Wolfram 语言. 2012. "DeleteEdges." Wolfram 语言与系统参考资料中心. Wolfram Research. https://reference.wolfram.com/language/Combinatorica/ref/DeleteEdges.html.
APA
Wolfram 语言. (2012). DeleteEdges. Wolfram 语言与系统参考资料中心. 追溯自 https://reference.wolfram.com/language/Combinatorica/ref/DeleteEdges.html 年