MCPcopy Create free account
hub / github.com/comaps/comaps / IsDeadEnd

Function IsDeadEnd

libs/routing/index_router.cpp:175–183  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

173}
174
175bool 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
185bool IsDeadEndCached(Segment const & segment, bool isOutgoing, bool useRoutingOptions, WorldGraph & worldGraph,
186 set<Segment> & deadEnds)

Callers 1

IsDeadEndCachedFunction · 0.85

Calls 1

CheckGraphConnectivityFunction · 0.85

Tested by

no test coverage detected