From 6d1664d57efa84f4be3c3841f550f321baa2b0d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torma=20Krist=C3=B3f?= Date: Fri, 2 Oct 2020 01:34:58 +0200 Subject: [PATCH] am dumb --- app.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app.py b/app.py index 94e88fb..5928bd2 100644 --- a/app.py +++ b/app.py @@ -11,15 +11,15 @@ def read_graph(graph_file: str = 'valos_halozat_other_dataset.txt') -> dict: for _ in range(edges): line = f.readline().split('\t') 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} def calclulate_values(graph_data: dict): print(f"Klaszterezettseg: {graph_data['graph'].clusters()}") + print(f"Atlagos ut hossz: {graph_data['graph'].average_path_length()}") print(f"Atlagos fokszam: {(graph_data['edges'] * 2) / graph_data['vertices']}") print(f"Komponensek: {graph_data['graph'].components}") print(f"Atmero: {graph_data['graph'].diameter()}") - print(f"Atlagos ut hossz: {graph_data['graph'].average_path_length()}") if __name__ == "__main__":