def prepare_test_data(): json_data = parse_json("mockJsonText.txt") dict_of_cities = City.make_city_dict(json_data) return dict_of_cities
#parse the json json_data = parse_json("jsonUtilities/newJson.txt") #parse the json with Champaign information extra_json_data_file_name = "jsonUtilities/extra_json.txt" extend_json_data(json_data,extra_json_data_file_name) #construct dictionary of edges dict_of_edges = Edge.make_dict(json_data) #construct graph graph = make_graph(dict_of_edges) #construct dictionary of cities dict_of_cities = City.make_city_dict(json_data) #maximum number of options supported no_of_options = 8 choice = -1 # FOR PRINTING THE GRAPH # for key in sorted(graph): # print(key +" -> "+ str(graph[key])) #main loop for querying while int(choice) != 8: print("\n---------------------------------------------\n") print("Welcome to CSAir Public Information System.")