refactor nway_other.cxx
authorDiane Trout <diane@caltech.edu>
Fri, 24 Feb 2006 07:17:16 +0000 (07:17 +0000)
committerDiane Trout <diane@caltech.edu>
Fri, 24 Feb 2006 07:17:16 +0000 (07:17 +0000)
commit92811d423c9755fb2a43481a9faa3e9aadd840d3
tree2f7f2dae33f213c0182d0a5fd3a73d9991cc8481
parentcb51f9323ccae237b9bfdd33579c22a9c520c85e
refactor nway_other.cxx
In order to understand how the transitive and radial nway comparisons
worked I wanted to make the algorithms fit in a single window. I did
this by taking various types of initialization loops that were duplicated
between both algortihms and refactored them into seperate functions.
(mostly these common loops handled building paths that were between
our various iterators on each species lists of FLPs)

I thought it might be nice to turn the various functions I ripped out
into a class that manages the march of the iterators across the lists
of FLPs.

I also added some fairly basic unit tests for the nway (transitive) comparison.
alg/flp.cxx
alg/flp.hh
alg/nway_other.cxx
alg/nway_paths.cxx
alg/nway_paths.hh
test/test_flp.cxx
test/test_nway.cxx