lemon/smart_graph.h
changeset 147 7c39a090cfc3
parent 138 a0f755a30cf1
child 149 2f7ae34e1333
equal deleted inserted replaced
2:ca3a545f00ca 3:dc5c0d5bda2c
    71     SmartDigraphBase() : nodes(), arcs() { }
    71     SmartDigraphBase() : nodes(), arcs() { }
    72     SmartDigraphBase(const SmartDigraphBase &_g) 
    72     SmartDigraphBase(const SmartDigraphBase &_g) 
    73       : nodes(_g.nodes), arcs(_g.arcs) { }
    73       : nodes(_g.nodes), arcs(_g.arcs) { }
    74     
    74     
    75     typedef True NodeNumTag;
    75     typedef True NodeNumTag;
    76     typedef True ArcNumTag;
    76     typedef True EdgeNumTag;
    77 
    77 
    78     int nodeNum() const { return nodes.size(); }
    78     int nodeNum() const { return nodes.size(); }
    79     int arcNum() const { return arcs.size(); }
    79     int arcNum() const { return arcs.size(); }
    80 
    80 
    81     int maxNodeId() const { return nodes.size()-1; }
    81     int maxNodeId() const { return nodes.size()-1; }