equal
deleted
inserted
replaced
235 friend class NodeIt; |
235 friend class NodeIt; |
236 protected: |
236 protected: |
237 int n; |
237 int n; |
238 friend int SmartGraph::id(Edge e) const; |
238 friend int SmartGraph::id(Edge e) const; |
239 |
239 |
|
240 public: |
|
241 /// An Edge with id \c n. |
|
242 |
|
243 /// \bug It should be |
|
244 /// obtained by a member function of the Graph. |
240 Edge(int nn) {n=nn;} |
245 Edge(int nn) {n=nn;} |
241 public: |
|
242 Edge() { } |
246 Edge() { } |
243 Edge (Invalid) { n=-1; } |
247 Edge (Invalid) { n=-1; } |
244 bool operator==(const Edge i) const {return n==i.n;} |
248 bool operator==(const Edge i) const {return n==i.n;} |
245 bool operator!=(const Edge i) const {return n!=i.n;} |
249 bool operator!=(const Edge i) const {return n!=i.n;} |
246 bool operator<(const Edge i) const {return n<i.n;} |
250 bool operator<(const Edge i) const {return n<i.n;} |