allfed / pytradeshifts

Contains code and documentation for the pytradeshifts model
Apache License 2.0
0 stars 2 forks source link

Fix betweenness #45

Closed lukaszgajewski closed 8 months ago

lukaszgajewski commented 8 months ago

Currently betweenness is computed with the edge weights corresponding to trade. IMHO, it's not quite right, because trade corresponds more to flow than cost , so for the computation of the shortest paths we should be using 1/weight, i.e., inverse of flow = cost. This is already how we compute efficiency; betweenness was implemented somewhat absent-mindedly. This PR fixes this.