40 namespace datastructure {
42 template<
typename T,
typename Graph>
45 using Node =
typename Graph::Node;
46 using reference =
typename std::vector<T>::reference;
68 if ((std::size_t)
g->max_node_index() >= std::vector<T>::size()) {
75 return std::vector<T>::operator[](v->index());
79 OGDF_ASSERT((std::size_t)v->index() < this->size());
80 return std::vector<T>::operator[](v->index());
84 std::vector<T>::operator=(x);
96 template<
typename T,
typename Graph>
99 using Edge =
typename Graph::Edge;
122 if (
g && (std::size_t)
g->max_edge_index() >= std::vector<T>::size()) {
129 return std::vector<T>::operator[](e->index());
133 OGDF_ASSERT((std::size_t)e->index() < this->size());
134 return std::vector<T>::operator[](e->index());
138 std::vector<T>::operator=(x);