equal
deleted
inserted
replaced
44 |
44 |
45 bool S_CLASS; |
45 bool S_CLASS; |
46 bool T_CLASS; |
46 bool T_CLASS; |
47 |
47 |
48 BipartiteGraphWrapper(Graph& _graph, SFalseTTrueMap& _s_false_t_true_map) |
48 BipartiteGraphWrapper(Graph& _graph, SFalseTTrueMap& _s_false_t_true_map) |
49 : GraphWrapper<Graph>(_graph), s_false_t_true_map(&_s_false_t_true_map), |
49 : GraphWrapper<Graph>(_graph), |
50 S_CLASS(false), T_CLASS(true) { } |
50 s_false_t_true_map(&_s_false_t_true_map), |
|
51 S_CLASS(false), T_CLASS(true) { } |
51 typedef typename GraphWrapper<Graph>::Node Node; |
52 typedef typename GraphWrapper<Graph>::Node Node; |
52 //using GraphWrapper<Graph>::NodeIt; |
53 //using GraphWrapper<Graph>::NodeIt; |
53 typedef typename GraphWrapper<Graph>::Edge Edge; |
54 typedef typename GraphWrapper<Graph>::Edge Edge; |
54 //using GraphWrapper<Graph>::EdgeIt; |
55 //using GraphWrapper<Graph>::EdgeIt; |
55 class ClassNodeIt; |
56 class ClassNodeIt; |
195 SFalseTTrueMap s_false_t_true_map; |
196 SFalseTTrueMap s_false_t_true_map; |
196 public: |
197 public: |
197 typedef typename Parent::Node Node; |
198 typedef typename Parent::Node Node; |
198 typedef typename Parent::Edge Edge; |
199 typedef typename Parent::Edge Edge; |
199 BipartiteGraph() : BipartiteGraphWrapper<Graph>(), |
200 BipartiteGraph() : BipartiteGraphWrapper<Graph>(), |
200 gr(), bipartite_map(gr), |
201 gr(), bipartite_map(gr, -1), |
201 s_false_t_true_map(bipartite_map) { |
202 s_false_t_true_map(bipartite_map) { |
202 Parent::setGraph(gr); |
203 Parent::setGraph(gr); |
203 Parent::setSFalseTTrueMap(s_false_t_true_map); |
204 Parent::setSFalseTTrueMap(s_false_t_true_map); |
204 } |
205 } |
205 |
206 |