MCPcopy Create free account
hub / github.com/Project-OSRM/osrm-backend / FindEdge

Method FindEdge

include/util/static_graph.hpp:176–186  ·  view source on GitHub ↗

searches for a specific edge

Source from the content-addressed store, hash-verified

174
175 // searches for a specific edge
176 EdgeIterator FindEdge(const NodeIterator from, const NodeIterator to) const
177 {
178 for (const auto i : irange(BeginEdges(from), EndEdges(from)))
179 {
180 if (to == edge_array[i].target)
181 {
182 return i;
183 }
184 }
185 return SPECIAL_EDGEID;
186 }
187
188 /**
189 * Finds the edge with the smallest `.weight` going from `from` to `to`

Callers 15

mainFunction · 0.45
findSegregatedNodesFunction · 0.45
operator()Method · 0.45
unpackPackedPathsFunction · 0.45
InsertEdgeBasedNodeMethod · 0.45
CompressMethod · 0.45
removeInvalidTurnPathsFunction · 0.45
CompressGeometryMethod · 0.45
getIncomingEdgesFunction · 0.45

Calls 1

irangeFunction · 0.85

Tested by

no test coverage detected