COIN-OR::LEMON - Graph Library

Changeset 977:48962802d168 in lemon-0.x for src/lemon/full_graph.h


Ignore:
Timestamp:
11/10/04 21:14:32 (19 years ago)
Author:
Mihaly Barasz
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@1365
Message:
  • enable_if imported from BOOST
  • count{Nodes,Edges} implemented via graph tags
  • some #include bugs fixed
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/lemon/full_graph.h

    r959 r977  
    2020
    2121#include <lemon/idmappable_graph_extender.h>
    22 
    2322#include <lemon/iterable_graph_extender.h>
    24 
    2523#include <lemon/alteration_observer_registry.h>
    2624#include <lemon/default_map.h>
     25
     26#include <lemon/invalid.h>
     27#include <lemon/utility.h>
     28
    2729
    2830///\ingroup graphs
     
    3032///\brief FullGraph and SymFullGraph classes.
    3133
    32 
    33 #include <lemon/invalid.h>
    3434
    3535namespace lemon {
     
    5959    //      : NodeNum(_g.nodeNum()), EdgeNum(NodeNum*NodeNum) { }
    6060   
     61    typedef True NodeNumTag;
     62    typedef True EdgeNumTag;
     63
    6164    ///Number of nodes.
    6265    int nodeNum() const { return NodeNum; }
     
    207210  };
    208211
    209   template <>
    210   int countNodes<FullGraph>(const FullGraph& graph) {
    211     return graph.nodeNum();
    212   }
    213 
    214   template <>
    215   int countEdges<FullGraph>(const FullGraph& graph) {
    216     return graph.edgeNum();
    217   }
    218 
    219212  /// @} 
    220213
     
    222215
    223216
    224 
    225 
    226217#endif //LEMON_FULL_GRAPH_H
Note: See TracChangeset for help on using the changeset viewer.