graph: Adjust calculation to match exercise
This commit is contained in:
@@ -68,7 +68,11 @@ def parse(filename: str) -> DataSet:
|
||||
stops = splitted[2]
|
||||
else:
|
||||
stops = 0
|
||||
flights.update({id1: {"to": id2, "stops": stops}})
|
||||
if len(splitted) == 4:
|
||||
domestic = True
|
||||
else:
|
||||
domestic = False
|
||||
flights.update({id1: {"to": id2, "stops": stops, "domestic": domestic}})
|
||||
continue
|
||||
case ParsingMode.FINDCONNECTION:
|
||||
print("Parsing connection...")
|
||||
|
||||
Reference in New Issue
Block a user