COIN-OR::LEMON - Graph Library

Ignore:
Timestamp:
04/30/04 19:10:01 (17 years ago)
Author:
marci
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@659
Message:

A bipartite graph template can be used as BipartiteGraph?<ListGraph?>.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/work/marci/bipartite_graph_wrapper.h

    r498 r499  
    3232    SFalseTTrueMap* s_false_t_true_map;
    3333
    34     BipartiteGraphWrapper() : GraphWrapper<Graph>(0) { }
     34    BipartiteGraphWrapper() : GraphWrapper<Graph>() { }
    3535    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;
    3737    }
    3838
     
    197197    typedef typename Parent::Node Node;
    198198    typedef typename Parent::Edge Edge;
    199     BipartiteGraph() : BipartiteGraphWrapper<Graph>(0),
     199    BipartiteGraph() : BipartiteGraphWrapper<Graph>(),
    200200                       gr(), bipartite_map(gr),
    201201                       s_false_t_true_map(bipartite_map) {
    202202      Parent::setGraph(gr);
    203       Parent::setSFalseTTrueMap(bipartite_map);
     203      Parent::setSFalseTTrueMap(s_false_t_true_map);
    204204    }
    205205
Note: See TracChangeset for help on using the changeset viewer.