This commit is contained in:
parent
e3e7e82dca
commit
36887410af
2
app.py
2
app.py
@ -9,7 +9,7 @@ def read_graph(graph_file: str = 'valos_halozat_formatted.txt') -> ig.Graph:
|
|||||||
edges = int(f.readline())
|
edges = int(f.readline())
|
||||||
result_graph: ig.Graph = ig.Graph(vertices)
|
result_graph: ig.Graph = ig.Graph(vertices)
|
||||||
for _ in range(edges):
|
for _ in range(edges):
|
||||||
line = f.readline().split('')
|
line = f.readline().split(' ')
|
||||||
result_graph.add_edge(int(line[0]), int(line[1]))
|
result_graph.add_edge(int(line[0]), int(line[1]))
|
||||||
return result_graph
|
return result_graph
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user