Non-recursive implementation of Goldberg SSSP algorithm using one graph