Skip to main content

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.

EdgeCount[{v->w,…},…] uses rules v->w to specify the graph g.

Please visit the official Wolfram Language Reference for more details and examples on core symbols.