Remedying copy-paste syndrome with bellmanFord() and bellmanFord( host )