]> ruin.nu Git - germs.git/commitdiff
nicer with size_t for cycles, they can't be negative anyway
authorMichael Andreen <harv@ruin.nu>
Sun, 24 Jun 2007 12:15:43 +0000 (12:15 +0000)
committerMichael Andreen <harv@ruin.nu>
Sun, 24 Jun 2007 12:15:43 +0000 (12:15 +0000)
src/genealgorithms.cpp
src/genealgorithms.h

index 78b0f0572dc283b1e7e8f7278303954ff77cddac..7f54109dc6c0103251cafff77bef93d92fa9f1e4 100644 (file)
@@ -66,8 +66,8 @@ struct FindP{
 };
 
 
 };
 
 
-int countCycles(const GeneOrder& go){
-       int cycles = 0;
+size_t countCycles(const GeneOrder& go){
+       size_t cycles = 0;
        set<size_t> marked;
        vector<Interval> intervals = findIntervals(go);
        vector<Interval> points = findIntervalsAtPoints(intervals);
        set<size_t> marked;
        vector<Interval> intervals = findIntervals(go);
        vector<Interval> points = findIntervalsAtPoints(intervals);
index 0158c35108616b4fd18b452ec357fa39841005c3..b5ed95d01ccb69af8797ec51aa820305e99db376 100644 (file)
@@ -49,7 +49,7 @@ std::vector<std::vector<int> > robinsonSchensted(const GeneOrder& go);
 /**
  * Counts the number of cycles in the gene order.
  */
 /**
  * Counts the number of cycles in the gene order.
  */
-int countCycles(const GeneOrder& go);
+size_t countCycles(const GeneOrder& go);
 
 /**
  * Finds the components in the gene order.
 
 /**
  * Finds the components in the gene order.