View full-text article in PMC Entropy (Basel). 2021 Dec 20;23(12):1703. doi: 10.3390/e23121703 Search in PMC Search in PubMed View in NLM Catalog Add to search Copyright and License information © 2021 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/). PMC Copyright notice Algorithm A3GetBestSinks(V,bps,LS) for allZ⊆V such that X0∈Z in lexicographic order do scores[Z]←0.0 sinks[Z]←−1 for all sink∈Z∖{X0} do upvars←Z∖{sink} skore←scores[upvars] skore←skore+LS[sink][bps[sink][upvars]] if sinks[Z]=−1orskore>scores[Z] then scores[Z]←skore sinks[Z]←sink end if end for end for