This commit is contained in:
parent
7de66f7bf2
commit
179f6450e0
2
app.py
2
app.py
@ -9,7 +9,7 @@ def read_graph(graph_file: str = 'valos_halozat_other_dataset.txt') -> map:
|
|||||||
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('\t')
|
||||||
result_graph.add_edge(int(line[0]), int(line[1]))
|
result_graph.add_edge(int(line[0]), int(line[1]))
|
||||||
return {"graph": result_graph, "edges:": edges, "vertices": vertices}
|
return {"graph": result_graph, "edges:": edges, "vertices": vertices}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user