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
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`"].
相关指南
-
▪
- Constructing Graphs ▪
- Graphs & Networks ▪
- Graph Visualization ▪
- Computation on Graphs ▪
- Graph Construction & Representation ▪
- Graphs and Matrices ▪
- Graph Properties & Measurements ▪
- Graph Operations and Modifications ▪
- Statistical Analysis ▪
- Social Network Analysis ▪
- Graph Properties ▪
- Mathematical Data Formats ▪
- Discrete Mathematics
文本
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 年
BibTeX
@misc{reference.wolfram_2025_deleteedges, author="Wolfram Research", title="{DeleteEdges}", year="2012", howpublished="\url{https://reference.wolfram.com/language/Combinatorica/ref/DeleteEdges.html}", note=[Accessed: 02-May-2026]}
BibLaTeX
@online{reference.wolfram_2025_deleteedges, organization={Wolfram Research}, title={DeleteEdges}, year={2012}, url={https://reference.wolfram.com/language/Combinatorica/ref/DeleteEdges.html}, note=[Accessed: 02-May-2026]}