COIN-OR::LEMON - Graph Library

Changeset 1791:62e7d237e1fb in lemon-0.x for lemon/list_graph.h


Ignore:
Timestamp:
11/14/05 19:38:41 (18 years ago)
Author:
Balazs Dezso
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@2332
Message:

Modification on the base graph concept
The extended interface does not changed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lemon/list_graph.h

    r1774 r1791  
    2828#include <lemon/bits/alteration_notifier.h>
    2929#include <lemon/bits/default_map.h>
    30 
    31 #include <lemon/bits/undir_graph_extender.h>
     30#include <lemon/bits/graph_extender.h>
    3231
    3332#include <lemon/error.h>
     
    106105    /// Maximum node ID.
    107106    ///\sa id(Node)
    108     int maxId(Node = INVALID) const { return nodes.size()-1; }
     107    int maxNodeId() const { return nodes.size()-1; }
    109108
    110109    /// Maximum edge ID.
     
    112111    /// Maximum edge ID.
    113112    ///\sa id(Edge)
    114     int maxId(Edge = INVALID) const { return edges.size()-1; }
     113    int maxEdgeId() const { return edges.size()-1; }
    115114
    116115    Node source(Edge e) const { return edges[e.id].source; }
     
    165164    static int id(Edge e) { return e.id; }
    166165
    167     static Node fromId(int id, Node) { return Node(id);}
    168     static Edge fromId(int id, Edge) { return Edge(id);}
     166    static Node nodeFromId(int id) { return Node(id);}
     167    static Edge edgeFromId(int id) { return Edge(id);}
    169168
    170169    /// Adds a new node to the graph.
     
    316315    MappableGraphExtender<
    317316    IterableGraphExtender<
    318     AlterableGraphExtender<ListGraphBase> > > > > > ExtendedListGraphBase;
     317    AlterableGraphExtender<
     318    GraphExtender<ListGraphBase> > > > > > > ExtendedListGraphBase;
    319319
    320320  /// \addtogroup graphs
Note: See TracChangeset for help on using the changeset viewer.