gravatar
alpar (Alpar Juttner)
alpar@cs.elte.hu
Merge bugfix #366 to branch 1.0
0 1 0
merge 1.0
0 files changed with 2 insertions and 2 deletions:
↑ Collapse diff ↑
Show white space 12 line context
... ...
@@ -43,13 +43,13 @@
43 43
        ++len;
44 44
      }
45 45
      return len;
46 46
    }
47 47

	
48 48
    bool empty() const {
49
      return predMap[target] != INVALID;
49
      return predMap[target] == INVALID;
50 50
    }
51 51

	
52 52
    class RevArcIt {
53 53
    public:
54 54
      RevArcIt() {}
55 55
      RevArcIt(Invalid) : path(0), current(INVALID) {}
... ...
@@ -117,13 +117,13 @@
117 117
        ++len;
118 118
      }
119 119
      return len;
120 120
    }
121 121

	
122 122
    bool empty() const {
123
      return source != target;
123
      return predMatrixMap(source, target) == INVALID;
124 124
    }
125 125

	
126 126
    class RevArcIt {
127 127
    public:
128 128
      RevArcIt() {}
129 129
      RevArcIt(Invalid) : path(0), current(INVALID) {}
0 comments (0 inline)