Commit 911e4e2b authored by Corentin Bettiol's avatar Corentin Bettiol 💻

fix bug

parent 2d869f0b
......@@ -28,7 +28,7 @@ bool Graph::addArc(int n1, int n2, int d){
// si l'arc existe déjà
for(int i(0); i<arc.size(); i++){
if(arc[i][0] == n1 && arc[i][1] == n2)
if(arc[i][0] == getIdByNode(n1) && arc[i][1] == getIdByNode(n2)
return false;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment