starling_sim.basemodel.topology.simple_time_weight
Module Contents
Classes
Simply define the weight as equal to the time spent on the edge. |
- class starling_sim.basemodel.topology.simple_time_weight.SimpleTimeWeight(topology)
Bases:
starling_sim.basemodel.topology.network_weight.NetworkWeight
Simply define the weight as equal to the time spent on the edge.
This results in shortest (time) paths.
- compute_edge_weight(u, v, d, parameters)
Compute and set edge weight using edge data and parameters.
The attribute key to set is the hash of the parameters.
- Parameters:
u – edge origin
v – edge destination
d – edge data
parameters – agent specific parameters