Open bsnyh opened 4 years ago
Since Way
s represent any kind of shape I understand that we can have a situation where the same nodes can occur more than once in a single Way
. From graph routing point of view this means having an unnecessary cycle and hence should be avoided. Perhaps @bartoszpankratz can elaborate more on this.
Hi, I have a question about the logic of the first if statement. I do not quite understand how it works. I mean, why is it exactly like this? Based on my understanding,
highway.nodes[firstNode] is always not the same as highway.nodes[j]
, right? Moreover, why do we require highway.nodes[j] in the set intersect? It is rather strange to me at least. Could you kindly clarify a little bit?