diff --git a/src/chemkit/rppath.h b/src/chemkit/rppath.h index 485f1888..ad6c373d 100644 --- a/src/chemkit/rppath.h +++ b/src/chemkit/rppath.h @@ -373,19 +373,18 @@ inline std::vector > rppath(const Graph &graph) if(P(i, j).size() == 1 && Pt(i, j).size() == 0){ continue; } - else{ - T size; + + T size; - if(P(i, j).size() > 1){ - size = 2 * D(i, j); - } - else{ - size = 2 * D(i, j) + 1; - } + if(Pt(i, j).size() > 1){ + size = 2 * D(i, j) + 1; + } + else{ + size = 2 * D(i, j); + } - if(size > 2){ - candidates.push_back(RingCandidate(size, i, j)); - } + if(size > 2){ + candidates.push_back(RingCandidate(size, i, j)); } } }