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

Function nextEdges

unit_tests/extractor/restriction_graph.cpp:86–95  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84}
85
86std::map<NodeID, size_t> nextEdges(RestrictionGraph::EdgeRange edges)
87{
88 std::map<NodeID, size_t> res;
89 std::transform(edges.begin(),
90 edges.end(),
91 std::inserter(res, res.end()),
92 [&](const auto &edge)
93 { return std::make_pair(edge.node_based_to, edge.target); });
94 return res;
95}
96
97std::map<NodeID, size_t> checkNode(const RestrictionGraph &graph,
98 const RestrictionID node_id,

Callers 1

checkNodeFunction · 0.85

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected