https://9dok.net/document/zgw34r38-finding-approximation-weighted-distance-given-pair-nodes-takes.html