#ifndef VECTOR_EDGE_MAP_H #define VECTOR_EDGE_MAP_H #include #include "edge_map_base.h" template class VectorEdgeMap : public EdgeMapBase{ public: typedef V ValueType; VectorEdgeMap(Graph& g) : EdgeMapBase(g) {} void add(const E& edge) { if (edge->id >= container.size()) { container.resize(edge->id); } } void erase(const E&) {} private: typedef vector Container; Container container; } #endif