Back

gen-rand-p (clj)

(source)

function

(gen-rand-p g num-nodes p & {:keys [min-weight max-weight loops seed], :or {min-weight 1, max-weight 1, loops false, seed (System/nanoTime)}})
Adds num-nodes nodes to graph g with the probably p of an edge between each node.

Examples