Dijkstra's algorithm: Difference between revisions

m
(→‎{{header|Rust}}: Added rust)
m (→‎{{header|Rust}}: Fixed tags)
Line 2,726:
 
=={{header|Rust}}==
This solution uses a very bare-bones implementation of an adjacency list to represent the graph. It utilizes a binary heap in order to l
 
<lang rust>use std::cmp::Ordering;
Line 2,855:
println!("\nCost: {}", cost);
 
}</lang rust>
{{out}}
<pre>