Skip to main content
. 2021 Dec 20;23(12):1703. doi: 10.3390/e23121703
Algorithm A3GetBestSinks(V,bps,LS)
  • for allZV such that X0Z in lexicographic order do

  •     scores[Z]0.0

  •     sinks[Z]1

  •     for all sinkZ{X0} do

  •         upvarsZ{sink}

  •         skorescores[upvars]

  •         skoreskore+LS[sink][bps[sink][upvars]]

  •         if sinks[Z]=1orskore>scores[Z] then

  •            scores[Z]skore

  •            sinks[Z]sink

  •         end if

  •     end for

  • end for