| 137 | bool HasDistance(Vertex const & vertex) const { return m_distanceMap.find(vertex) != m_distanceMap.cend(); } |
| 138 | |
| 139 | Weight GetDistance(Vertex const & vertex) const |
| 140 | { |
| 141 | auto const & it = m_distanceMap.find(vertex); |
| 142 | if (it == m_distanceMap.cend()) |
| 143 | return kInfiniteDistance; |
| 144 | |
| 145 | return it->second; |
| 146 | } |
| 147 | |
| 148 | void SetDistance(Vertex const & vertex, Weight const & distance) { m_distanceMap[vertex] = distance; } |
| 149 |
no test coverage detected