Pass location file in constructor and form adjacency hash map only once