Possible to add custom extra weights for edges, to use for calculating shortest path?

Hello I am new to this and I have a few questions:

Can I add custom weights to edges: for example a unique “Extra traverse cost”-value for each edge and make this “Extra traverse cost”-value a part of the Shortest path algorithm? I want to modify the cost-function (when using Dijkstra) so that it in addition to “Length/Distance” can take into consideration a “Extra traverse cost”-value of each edge that the vehicle traverses.

Powered by Discourse