An implementation of the Bellman-Ford algorithm in TypeScript.