| 173 | } |
| 174 | |
| 175 | bool IsDeadEnd(Segment const & segment, bool isOutgoing, bool useRoutingOptions, WorldGraph & worldGraph, |
| 176 | set<Segment> & visitedSegments) |
| 177 | { |
| 178 | // Maximum size (in Segment) of an island in road graph which may be found by the method. |
| 179 | size_t constexpr kDeadEndTestLimit = 250; |
| 180 | |
| 181 | return !CheckGraphConnectivity(segment, isOutgoing, useRoutingOptions, kDeadEndTestLimit, worldGraph, |
| 182 | visitedSegments); |
| 183 | } |
| 184 | |
| 185 | bool IsDeadEndCached(Segment const & segment, bool isOutgoing, bool useRoutingOptions, WorldGraph & worldGraph, |
| 186 | set<Segment> & deadEnds) |
no test coverage detected