update eulerPath function in Graph.Utility module