[ library(graph_algorithms) | Reference Manual | Alphabetic Index ]

graph_set_random_weights(+Graph, +Min, +Max)

Unifies all the graph's edge data fields with random numbers
a graph structure
an integer or float
an integer or float


The input Graph is assumed to be a graph with uninstantiated edge data fields. These will be instantiated to random numbers between Min and Max, using random/1 if Min and Max are integers, or using frandom/1 if Min and Max are floats.

Modes and Determinism

See Also

make_random_graph / 6, random / 1, frandom / 1