constructs a random labeled graph on vertices with an edge probability of .
- To use , you first need to load the Combinatorica Package using Needs["Combinatorica`"].
- An option is provided, which can take on values Directed and Undirected, and whose default value is Undirected.
- Type->Directed produces a corresponding random directed graph.
- The usages RandomGraph[n, p, Directed], , and RandomGraph[n, p, range, Directed] are all obsolete. Use SetEdgeWeights to set random edge weights.