M[g]
gives the number of edges in the graph g.
M[g,Directed]
is obsolete because M[g] works for directed as well as undirected graphs.
M
M[g]
gives the number of edges in the graph g.
M[g,Directed]
is obsolete because M[g] works for directed as well as undirected graphs.
更多信息和选项
- M functionality is now available in the built-in Wolfram Language function EdgeCount.
- To use M, you first need to load the Combinatorica Package using Needs["Combinatorica`"].
相关指南
-
▪
- Graph Construction and Representations ▪
- 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),M,Wolfram 语言函数,https://reference.wolfram.com/language/Combinatorica/ref/M.html.
CMS
Wolfram 语言. 2012. "M." Wolfram 语言与系统参考资料中心. Wolfram Research. https://reference.wolfram.com/language/Combinatorica/ref/M.html.
APA
Wolfram 语言. (2012). M. Wolfram 语言与系统参考资料中心. 追溯自 https://reference.wolfram.com/language/Combinatorica/ref/M.html 年
BibTeX
@misc{reference.wolfram_2025_m, author="Wolfram Research", title="{M}", year="2012", howpublished="\url{https://reference.wolfram.com/language/Combinatorica/ref/M.html}", note=[Accessed: 22-April-2026]}
BibLaTeX
@online{reference.wolfram_2025_m, organization={Wolfram Research}, title={M}, year={2012}, url={https://reference.wolfram.com/language/Combinatorica/ref/M.html}, note=[Accessed: 22-April-2026]}