diff --git a/app.py b/app.py index bed76aa..9a7ccf7 100644 --- a/app.py +++ b/app.py @@ -9,7 +9,7 @@ def read_graph(graph_file: str = 'valos_halozat_formatted.txt') -> ig.Graph: edges = int(f.readline()) result_graph: ig.Graph = ig.Graph(vertices) for _ in range(edges): - line = f.readline().split('') + line = f.readline().split(' ') result_graph.add_edge(int(line[0]), int(line[1])) return result_graph