Fixed initializeEdgesWithFile