COIN-OR::LEMON - Graph Library

Ignore:
Timestamp:
11/28/04 17:30:10 (16 years ago)
Author:
Mihaly Barasz
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@1412
Message:

UndirGraph? implementation nearly complete

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/lemon/concept/graph_component.h

    r1021 r1022  
    407407    /// core clear functions for the graph structure.
    408408    /// The most of the base graphs should be conform to this concept.
    409     class BaseClearableGraphComponent : virtual public BaseGraphComponent {
     409    class ClearableGraphComponent : virtual public BaseGraphComponent {
    410410    public:
    411411
     
    419419      struct Constraints {
    420420        void constraints() {
    421           checkConcept< BaseGraphComponent, _Graph>();
     421          checkConcept<BaseGraphComponent, _Graph>();
    422422          graph.clear();
    423423        }
    424424
    425         _Graph& graph;
     425        _Graph graph;
    426426      };
    427427    };
     
    805805    };
    806806
    807     class ClearableGraphComponent : virtual public BaseGraphComponent {
    808     public:
    809 
    810       typedef ClearableGraphComponent Graph;
    811 
    812       typedef BaseGraphComponent::Node Node;
    813       typedef BaseGraphComponent::Edge Edge;
    814 
    815       void clear() {}   
    816 
    817 
    818       template <typename _Graph>
    819       struct ClearableGraphComponentConcept {
    820         void constraints() {
    821           checkConcept< BaseGraphComponent, _Graph >();
    822           graph.clear();
    823         }
    824         _Graph& graph;
    825       };
    826     };
    827 
    828807  }
    829808
Note: See TracChangeset for help on using the changeset viewer.