Qurak

EdgeCount

Available

Returns the number of edges in a graph (optionally matching a pattern)

EdgeCount[g]
EdgeCount[g, patt]
EdgeCount[{v -> w, …}, …]
g = PetersenGraph[5, 2]; {ConnectedGraphQ[g], EdgeCount[g] ≥ VertexCount[g] - 1} → {True, True}

Used in

Topics

Related

All 6300 functions · Use this from an MCP client