COIN-OR::LEMON - Graph Library

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


Ignore:
Timestamp:
11/11/04 10:31:55 (16 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/list_graph.h

    r975 r980  
    2626#include <lemon/extendable_graph_extender.h>
    2727
    28 #include <lemon/idmappable_graph_extender.h>
    29 
    3028#include <lemon/iterable_graph_extender.h>
    3129
     
    106104    /// Maximum node ID.
    107105    ///\sa id(Node)
    108     int maxNodeId() const { return nodes.size()-1; }
     106    int maxId(Node = INVALID) const { return nodes.size()-1; }
    109107
    110108    /// Maximum edge ID.
     
    112110    /// Maximum edge ID.
    113111    ///\sa id(Edge)
    114     int maxEdgeId() const { return edges.size()-1; }
     112    int maxId(Edge = INVALID) const { return edges.size()-1; }
    115113
    116114    Node tail(Edge e) const { return edges[e.id].tail; }
     
    304302  typedef AlterableGraphExtender<ListGraphBase> AlterableListGraphBase;
    305303  typedef IterableGraphExtender<AlterableListGraphBase> IterableListGraphBase;
    306   typedef IdMappableGraphExtender<IterableListGraphBase> IdMappableListGraphBase;
    307   typedef DefaultMappableGraphExtender<IdMappableListGraphBase> MappableListGraphBase;
     304  typedef DefaultMappableGraphExtender<IterableListGraphBase> MappableListGraphBase;
    308305  typedef ExtendableGraphExtender<MappableListGraphBase> ExtendableListGraphBase;
    309306  typedef ClearableGraphExtender<ExtendableListGraphBase> ClearableListGraphBase;
Note: See TracChangeset for help on using the changeset viewer.