COIN-OR::LEMON - Graph Library

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

bipartite graph in bipartite_graph_wrapper.h

File:
1 edited

Legend:

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

    r496 r497  
    8989  protected:
    9090    Graph* graph;
    91  
     91    GraphWrapper() : graph(0) { }
     92    void setGraph(Graph& _graph) { graph=&_graph; }
     93
    9294  public:
    9395    typedef Graph BaseGraph;
    9496    typedef Graph ParentGraph;
    9597
    96 //     GraphWrapper() : graph(0) { }
    9798    GraphWrapper(Graph& _graph) : graph(&_graph) { }
    98 //     void setGraph(Graph& _graph) { graph=&_graph; }
    9999//     Graph& getGraph() const { return *graph; }
    100100 
     
    226226  template<typename Graph>
    227227  class RevGraphWrapper : public GraphWrapper<Graph> {
     228  protected:
     229    RevGraphWrapper() : GraphWrapper<Graph>(0) { }
    228230  public:
    229 
    230231    RevGraphWrapper(Graph& _graph) : GraphWrapper<Graph>(_graph) { } 
    231232
     
    306307    NodeFilterMap* node_filter_map;
    307308    EdgeFilterMap* edge_filter_map;
     309
     310    SubGraphWrapper() : GraphWrapper<Graph>(0),
     311                        node_filter_map(0), edge_filter_map(0) { }
     312    void setNodeFilterMap(NodeFilterMap& _node_filter_map) {
     313      node_filter_map=&_node_filte_map;
     314    }
     315    void setEdgeFilterMap(EdgeFilterMap& _edge_filter_map) {
     316      edge_filter_map=&_edge_filte_map;
     317    }
     318   
    308319  public:
    309320
     
    454465  template<typename Graph>
    455466  class UndirGraphWrapper : public GraphWrapper<Graph> {
     467  protected:
     468    UndirGraphWrapper() : GraphWrapper<Graph>(0) { }
     469   
    456470  public:
    457471    typedef typename GraphWrapper<Graph>::Node Node;
     
    537551    const CapacityMap* capacity;
    538552    FlowMap* flow;
     553
     554    ResGraphWrapper() : GraphWrapper<Graph>(0),
     555                        capacity(0), flow(0) { }
     556    void setCapacityMap(const CapacityMap& _capacity_map) {
     557      capacity_map=&_capacity_map;
     558    }
     559    void setFlowMap(FlowMap& _flow) {
     560      flow=&_flow;
     561    }
     562
    539563  public:
    540564
Note: See TracChangeset for help on using the changeset viewer.