seperate edgeIndex to file IO.