split by tabulator
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Torma Kristóf 2020-10-02 01:15:18 +02:00
parent 7de66f7bf2
commit 179f6450e0
Signed by: tormakris
GPG Key ID: DC83C4F2C41B1047

2
app.py
View File

@ -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}