Network.set_cost

Network.set_cost(edge_cost, cost_type=None, **kw) None[source]

Set edge costs.

Parameters
edge_costedge_cost

Cost of edges.

cost_typestr, optional

Type of cost data. TODO-PW

kwkeyword arguments

Further keyword arguments passed to cost constructor.

See also

paminco.net.cost.NetworkCost.from_data