COIN-OR::LEMON - Graph Library

Changeset 980:0f1044b7a3af in lemon-0.x for src/lemon/smart_graph.h


Ignore:
Timestamp:
11/11/04 10:31:55 (19 years ago)
Author:
Balazs Dezso
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@1368
Message:

maxNodeId() and maxEdgeId() changed to maxId(Node) and maxId(Edge)
getNodeObserverRegistry() and getEdgeObserverRegistry() changed to
getObserverRegistry(Node) and getObserverRegistry(Edge)

IdMappableGraphExtender? erased

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/lemon/smart_graph.h

    r977 r980  
    2828#include <lemon/clearable_graph_extender.h>
    2929#include <lemon/extendable_graph_extender.h>
    30 #include <lemon/idmappable_graph_extender.h>
    3130#include <lemon/iterable_graph_extender.h>
    3231#include <lemon/alteration_observer_registry.h>
     
    9291    /// Maximum node ID.
    9392    ///\sa id(Node)
    94     int maxNodeId() const { return nodes.size()-1; }
     93    int maxId(Node = INVALID) const { return nodes.size()-1; }
    9594    /// Maximum edge ID.
    9695   
    9796    /// Maximum edge ID.
    9897    ///\sa id(Edge)
    99     int maxEdgeId() const { return edges.size()-1; }
     98    int maxId(Edge = INVALID) const { return edges.size()-1; }
    10099
    101100    Node tail(Edge e) const { return edges[e.n].tail; }
     
    222221  typedef AlterableGraphExtender<SmartGraphBase> AlterableSmartGraphBase;
    223222  typedef IterableGraphExtender<AlterableSmartGraphBase> IterableSmartGraphBase;
    224   typedef IdMappableGraphExtender<IterableSmartGraphBase> IdMappableSmartGraphBase;
    225   typedef DefaultMappableGraphExtender<IdMappableSmartGraphBase> MappableSmartGraphBase;
     223  typedef DefaultMappableGraphExtender<IterableSmartGraphBase> MappableSmartGraphBase;
    226224  typedef ExtendableGraphExtender<MappableSmartGraphBase> ExtendableSmartGraphBase;
    227225  typedef ClearableGraphExtender<ExtendableSmartGraphBase> ClearableSmartGraphBase;
     
    240238  ///
    241239  ///\author Alpar Juttner
    242   class SmartGraph :public ClearableSmartGraphBase {
     240  class SmartGraph : public ClearableSmartGraphBase {
    243241  public:
    244242    /// Finds an edge between two nodes.
Note: See TracChangeset for help on using the changeset viewer.