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

Function MakeUnitEdge

unit_tests/extractor/graph_compressor.cpp:26–37  ·  view source on GitHub ↗

creates a default edge of unit weight

Source from the content-addressed store, hash-verified

24
25// creates a default edge of unit weight
26inline InputEdge MakeUnitEdge(const NodeID from, const NodeID to)
27{
28 return {from, // source
29 to, // target
30 EdgeWeight{1}, // weight
31 EdgeDuration{1}, // duration
32 EdgeDistance{1}, // distance
33 GeometryID{0, false}, // geometry_id
34 false, // reversed
35 NodeBasedEdgeClassification(), // default flags
36 0}; // AnnotationID
37}
38
39bool compatible(Graph const &graph,
40 const std::vector<NodeBasedEdgeAnnotation> &node_data_container,

Callers 1

BOOST_AUTO_TEST_CASEFunction · 0.85

Calls 1

Tested by

no test coverage detected