def add_city(self): ''' Adds a city (node) to the graph ''' code = raw_input("What is the metro's code? ") name = raw_input("What is the metro's name? ") country = raw_input("Where country is the metro in? ") continent = raw_input("What continent is the metro in? ") timezone = raw_input("What timezone is the metro in? ") coordOneDir = raw_input("What is the first heading of the coordinate? ") coordOneVal = raw_input("What is the degree of the first heading? ") coordTwoDir = raw_input("What is the second heading of the coordinate? ") coordTwoVal = raw_input("What is the degree of the second heading? ") coordinates = {coordOneDir: coordOneVal, coordTwoDir: coordTwoVal} population = raw_input("What is the population of the metro? ") region = raw_input("What is the region of the metro? ") city = Metro(code, name, country, continent, timezone, coordinates, population, region, {}) self.list_of_metros[city.name] = city city.printInformation()