COIN-OR::LEMON - Graph Library

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


Ignore:
Timestamp:
11/14/05 19:38:41 (14 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/graph_adaptor.h

    r1755 r1791  
    3434#include <lemon/bits/alteration_notifier.h>
    3535#include <lemon/bits/default_map.h>
    36 #include <lemon/bits/undir_graph_extender.h>
     36#include <lemon/bits/graph_extender.h>
    3737#include <iostream>
    3838
     
    18601860    int id(const Edge& edge) const { return edge.id; }
    18611861
    1862     Node fromId(int id, Node) const { return graph->fromId(id, Node()); }
    1863     Edge fromId(int id, Edge) const { return Edge(id); }
    1864 
    1865     int maxId(Node) const { return graph->maxId(Node()); };
    1866     int maxId(Edge) const { return edges.size() - 1; }
     1862    Node nodeFromId(int id) const { return graph->fromId(id, Node()); }
     1863    Edge edgeFromId(int id) const { return Edge(id); }
     1864
     1865    int maxNodeId() const { return graph->maxId(Node()); };
     1866    int maxEdgeId() const { return edges.size() - 1; }
    18671867
    18681868    Node source(const Edge& edge) const { return edges[edge.id].source;}
Note: See TracChangeset for help on using the changeset viewer.