Skip to content

Commit ce33f1a

Browse files
committed
correct comments
1 parent e86d937 commit ce33f1a

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 if it 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)