I'm working on implementing the floyd warshall algorithm. I apply this algorithm on a graph with different vertices and some of them are not linked. My code isn't getting the right answer.
The final path generated from one vertex to another sometimes includes an edge which doesn't exist. I think my error comes from the fact that I compare infinity to infinity. I currently do that: I assume that a big integer will represent infinity for example 10000. What should I do when I met a situation like that 10000 > 10000 + n? with n < 10000