template<class VertexOrEdgeKey, class VertexOrEdgeConstIterator>
class Sawyer::Container::GraphVoidIndex< VertexOrEdgeKey, VertexOrEdgeConstIterator >
Fake index for graphs that don't have an index.
This is the index type used when a vertex or edge index is not required. It has no storage and constant lookup times. The API of the index is documented here. See GraphIndexTraits for information about how to override the index type for a graph.
Definition at line 118 of file Graph.h.
template<class VertexOrEdgeKey , class VertexOrEdgeConstIterator >
Insert a new element into the map.
Inserts a mapping from a vertex or edge key to a vertex or edge const iterator regardless of whether the key already exists in the map. The index should never contain duplicate keys, so if the same key is inserted twice the second one overrides the first one. In other words, inserting a key/iterator pair into an index behaves exactly the same whether the index is implemented as an std::map
from key to value or an array indexed by a key.
Definition at line 131 of file Graph.h.
template<class VertexOrEdgeKey , class VertexOrEdgeConstIterator >
Look up iterator for vertex or edge key.
Given a vertex or edge key, return the graph vertex or edge const iterator for that key. If the key does not exist in the index then return nothing.
Definition at line 142 of file Graph.h.