use lazy graph instead of hashmap