Change edge data to store a predecessor index, rather than a path