felipernb/algorithms.js — pull request #79 by eush77 (2014-07-28 09:44:54+00:00)
Title: Return previous vertices in Bellman-Ford

Other single-source shortest-path algorithms return both `distance` and `previous` objects, and this patch makes Bellman-Ford adhere to the existing interface.