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

Method BuildGraph

generator/routing_index_generator.cpp:122–133  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

120 }
121
122 void BuildGraph(IndexGraph & graph) const
123 {
124 vector<Joint> joints;
125 for (auto const & it : m_posToJoint)
126 {
127 // Need only connected points (2 or more roads)
128 if (it.second.GetSize() >= 2)
129 joints.emplace_back(it.second);
130 }
131
132 graph.Import(joints);
133 }
134
135 ankerl::unordered_dense::map<uint32_t, VehicleMask> const & GetMasks() const { return m_masks; }
136

Callers 1

BuildRoutingIndexFunction · 0.80

Calls 3

GetSizeMethod · 0.45
emplace_backMethod · 0.45
ImportMethod · 0.45

Tested by

no test coverage detected