WLJS LogoWLJS Notebook

BernoulliGraphDistribution

BernoulliGraphDistribution[n, p] represents a Bernoulli graph distribution for n-vertex graphs with edge probability p.

Examples

Generate a random graph with 10 vertices and 50% edge probability:

RandomGraph[BernoulliGraphDistribution[10, 0.5]]
(* Graph[...] *)

Please visit the official Wolfram Language Reference for more details.

On this page