Skip to content

Commit df9fda1

Browse files
author
Denis Chapligin
authored
Merge pull request #5384 from wangyoucao577/clean-comments
correct comments for "compress edge if it crosses a traffic signal"
2 parents b9ebe0c + d2e7e6e commit df9fda1

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/extractor/graph_compressor.cpp

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -206,12 +206,7 @@ void GraphCompressor::Compress(
206206
graph.GetEdgeData(reverse_e2).annotation_data = selectAnnotation(
207207
rev_edge_data2.annotation_data, rev_edge_data1.annotation_data);
208208

209-
/*
210-
// Do not compress edge if it crosses a traffic signal.
211-
// This can't be done in CanCombineWith, becase we only store the
212-
// traffic signals in the `traffic signal` list, which EdgeData
213-
// doesn't have access to.
214-
*/
209+
// Add node penalty when compress edge crosses a traffic signal
215210
const bool has_node_penalty = traffic_signals.find(node_v) != traffic_signals.end();
216211
EdgeDuration node_duration_penalty = MAXIMAL_EDGE_DURATION;
217212
EdgeWeight node_weight_penalty = INVALID_EDGE_WEIGHT;

0 commit comments

Comments
 (0)