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