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.

更多信息更多信息

New to Mathematica? Find your learning path »
Have a question? Ask support »