Assign link weights to links proportionally their delay. Weights are normalized so that the minimum weight is 1.
Parameters : | topology : Topology
|
---|
Examples
>>> import fnss
>>> topology = fnss.erdos_renyi_topology(50, 0.1)
>>> fnss.set_delays_constant(topology, 2, 'ms')
>>> fnss.set_weights_delays(topology)