Turn file into an actual Graph data structure.