GraphDensity
GraphDensity[g] gives the graph density of the graph g.
GraphDensity[{v -> w, …}]uses rulesv -> wto specify the graphg.
Examples
GraphDensity[CompleteGraph[10]]GraphDensity[RandomGraph[{20, 50}]]Please visit the official Wolfram Language Reference for more details.