Assign link weights to links proportionally to the inverse of their capacity. Weights are normalized so that the minimum weight is 1.
Parameters : | topology : Topology
|
---|
Examples
>>> import fnss
>>> topology = fnss.Topology()
>>> topology.add_path([1,2,3,4])
>>> fnss.set_capacities_constant(topology, 10, 'Mbps')
>>> fnss.set_weights_inverse_capacity(topology)