EdgeCount

EdgeCount[g]
gives a count of the number of edges in the graph g.

EdgeCount[g,patt]
gives a count of the number of edges that match the pattern patt.

DetailsDetails

  • Multiple edges between nodes are counted as separate.
Introduced in 2010
(8.0)