Run Code  | API  | Code Wall  | Misc  | Feedback  | Login  | Theme  | Privacy  | Patreon 

Bellman Ford algorithm helps to find the shortest path

Language: Layout:
+ ] Show input
Compilation time: 0,17 sec, absolute running time: 0,09 sec, cpu time: 0,08 sec, average memory usage: 12 Mb, average nr of threads: 2, absolute service time: 0,31 sec 
edit mode |  history  | discussion
Vertex Distance from Source vertex : 0

shortest path from the vertex 0 to 0 : 	 0
shortest path from the vertex 0 to 1 : 	 -1
shortest path from the vertex 0 to 2 : 	 2
shortest path from the vertex 0 to 3 : 	 -2
shortest path from the vertex 0 to 4 : 	 1

    
                
λ
.NET NoSQL database for rapid development