# Some input data sets for illustrations of the paper - variant "A". # Last edited on 2021-09-23 00:00:25 by stolfi import paper_figures_A_IMP def make_figure(version, mp_cont, mp_fill, mp_jump): # Returns a list of paths {PCS} that comprise the contour of a simple # slice, and two lists {PFS}, {PLS} of paths that comprise a solid raster filling # for that contour. # # The paths {PFS} use the same set {TRS} of filling raster traces, but may connect them # (or not) in different ways. The list {PLS} is either empty, or is a set of link paths # connecting some of the rasters. These variations are controlled by the parametr {version}. # # If {version} is 0, the list {PFS} has only the raster traces {TRS}, as # one-move paths, oriented left to right, and {PLS} has all the potential link # paths, oriented bottom to top. # # If {version} is 1, the list {PFS} has a single path with # the traces {TRS}, the non-alternating # scan-line-order path. Namely, all traces oriented left to right, # in increasing scan-line order and left-to-right in each scan-line, # connected by jumps. The list {LKS} is empty. # # If {version} is 2, the list {PFS} has a single path with # the traces {TRS}, the alternating scan0line-order path. Namelym # the rasters are used in inreasing scan-line order, # with the orientations and order reversed from one scan-line to the next. # Links are included in the path between scan-lines, as appropriate. # The list {LKS} is empty. # # If {version} is 3, the list {PFS} has a single path, which is # the minimum-fabtime path with no cooling constraints. It will # have several snake-like paths of rasted and links, connected by jumps. # The list {LKS} is empty. # # If {version} is 4, the elements of {PFS} are snake-like # paths that are all the alternatives of a set of blocks that would be # produced by {Hotpath}. The list {LKS} has only the links of those blocks. # # If {version} is 5, {PFS} has a single canonical path as would be returned by {HotPath}. # The list {LKS} is empty. # # The parameters {mp_cont,mp_fill,mp_jump} are used for the # outer contour traces, the filling traces (rasters and links), and the # filling jumps, respectively. return paper_figures_A_IMP.make_figure(version, mp_cont, mp_fill, mp_jump)