Vertexes comparison #11

Closed
opened 2017-12-13 08:25:54 +00:00 by regar42 · 0 comments
Collaborator

In dijkstra(GraphInterface g, VertexInterface r, ASetInterface a, PiInterface pi, PreviousInterface previous) { :

At

if (vertex != r) {
we compare vertexes using the following code :
if (vertex != r) {
…
}

According on how we pass r, we may need to use r.equals() instead of a naive reference comparison.

In `dijkstra(GraphInterface g, VertexInterface r, ASetInterface a, PiInterface pi, PreviousInterface previous) {` : At https://git.regar42.fr/antograb/TpMazeJava/src/commit/c3e74a20f34753074fbfede41b83ac8393990203/src/dijkstra/Dijkstra.java#L17 we compare vertexes using the following code : if (vertex != r) { … } According on how we pass `r`, we may need to use `r.equals()` instead of a naive reference comparison.
regar42 added the bug label 2017-12-13 08:25:54 +00:00
regar42 added the wontfix label 2018-01-14 16:03:23 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
-
Dependencies

No dependencies set.

Reference: antograb/TpMazeJava#11