Skip to content

Commit

Permalink
🐛 Mise en valeur du chemin
Browse files Browse the repository at this point in the history
  • Loading branch information
Catatomik committed Jun 24, 2021
1 parent 0972698 commit e991401
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion graph.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ function createEdges(G, sommets) {

const fromIndex = chemin.indexOf(S[x])
const toIndex = chemin.indexOf(S[y])
const onPath = fromIndex > -1 && toIndex > -1 && (fromIndex == toIndex-1 || fromIndex-1 == toIndex)
const onPath = fromIndex > -1 && toIndex > -1 && (fromIndex == toIndex-1 || (fromIndex-1 == toIndex && !pondere))

aretes.push({
from,
Expand Down

0 comments on commit e991401

Please sign in to comment.