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.

DetailsDetails

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