https://1library.org/document/qvp41dgq-effective-algorithm-obtaining-minimal-pairs-disjoint-paths-costs.html