Digraph.Rand
Random graphs
val graph : ?loops:bool -> v:int -> e:int -> unit -> t
random v e
generates a random with v
vertices and e
edges.
random_labeled f
is similar to random
except that edges are labeled using function f
val gnp : ?loops:bool -> v:int -> prob:float -> unit -> t
gnp v prob
generates a random graph with v
vertices and where each edge is selected with probality prob
(G(n,p) model)