Renamed contructor parameters
Made the hashmap (containing vertex->vertex id) lazy