Address PR comments
This commit is contained in:
committed by
Patrick Niklaus
parent
4986f5ea2d
commit
94e2a8598d
@@ -60,7 +60,7 @@ class CompressedEdgeContainer
|
||||
NodeID GetLastEdgeSourceID(const EdgeID edge_id) const;
|
||||
|
||||
// Invalidates the internal storage
|
||||
SegmentDataContainer ToSegmentData();
|
||||
std::unique_ptr<SegmentDataContainer> ToSegmentData();
|
||||
|
||||
private:
|
||||
int free_list_maximum = 0;
|
||||
@@ -71,7 +71,7 @@ class CompressedEdgeContainer
|
||||
std::unordered_map<EdgeID, unsigned> m_edge_id_to_list_index_map;
|
||||
std::unordered_map<EdgeID, unsigned> m_forward_edge_id_to_zipped_index_map;
|
||||
std::unordered_map<EdgeID, unsigned> m_reverse_edge_id_to_zipped_index_map;
|
||||
SegmentDataContainer segment_data;
|
||||
std::unique_ptr<SegmentDataContainer> segment_data;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace updater
|
||||
class Updater
|
||||
{
|
||||
public:
|
||||
Updater(const UpdaterConfig &config) :config(config) {}
|
||||
Updater(UpdaterConfig config_) :config(std::move(config_)) {}
|
||||
|
||||
EdgeID LoadAndUpdateEdgeExpandedGraph(
|
||||
std::vector<extractor::EdgeBasedEdge> &edge_based_edge_list,
|
||||
|
||||
Reference in New Issue
Block a user