equal
deleted
inserted
replaced
29 protected: |
29 protected: |
30 typedef IterableBoolMap< typename Graph::template NodeMap<int> > |
30 typedef IterableBoolMap< typename Graph::template NodeMap<int> > |
31 SFalseTTrueMap; |
31 SFalseTTrueMap; |
32 SFalseTTrueMap* s_false_t_true_map; |
32 SFalseTTrueMap* s_false_t_true_map; |
33 |
33 |
34 BipartiteGraphWrapper() : GraphWrapper<Graph>(0) { } |
34 BipartiteGraphWrapper() : GraphWrapper<Graph>() { } |
35 void setSFalseTTrueMap(SFalseTTrueMap& _s_false_t_true_map) { |
35 void setSFalseTTrueMap(SFalseTTrueMap& _s_false_t_true_map) { |
36 s_false_t_true_map=_s_false_t_true_map; |
36 s_false_t_true_map=&_s_false_t_true_map; |
37 } |
37 } |
38 |
38 |
39 public: |
39 public: |
40 //marci |
40 //marci |
41 //FIXME vhogy igy kellene, csak az en forditom nem eszi meg |
41 //FIXME vhogy igy kellene, csak az en forditom nem eszi meg |
194 typename Graph::template NodeMap<int> bipartite_map; |
194 typename Graph::template NodeMap<int> bipartite_map; |
195 SFalseTTrueMap s_false_t_true_map; |
195 SFalseTTrueMap s_false_t_true_map; |
196 public: |
196 public: |
197 typedef typename Parent::Node Node; |
197 typedef typename Parent::Node Node; |
198 typedef typename Parent::Edge Edge; |
198 typedef typename Parent::Edge Edge; |
199 BipartiteGraph() : BipartiteGraphWrapper<Graph>(0), |
199 BipartiteGraph() : BipartiteGraphWrapper<Graph>(), |
200 gr(), bipartite_map(gr), |
200 gr(), bipartite_map(gr), |
201 s_false_t_true_map(bipartite_map) { |
201 s_false_t_true_map(bipartite_map) { |
202 Parent::setGraph(gr); |
202 Parent::setGraph(gr); |
203 Parent::setSFalseTTrueMap(bipartite_map); |
203 Parent::setSFalseTTrueMap(s_false_t_true_map); |
204 } |
204 } |
205 |
205 |
206 /// the \c bool parameter which can be \c S_Class or \c T_Class shows |
206 /// the \c bool parameter which can be \c S_Class or \c T_Class shows |
207 /// the color class where the new node is to be inserted. |
207 /// the color class where the new node is to be inserted. |
208 Node addNode(bool b) { |
208 Node addNode(bool b) { |