no dumbness
Some checks reported errors
continuous-integration/drone/push Build was killed

This commit is contained in:
Torma Kristóf 2020-10-02 01:39:46 +02:00
parent 6d1664d57e
commit 204a5ec17b
Signed by: tormakris
GPG Key ID: DC83C4F2C41B1047

6
app.py
View File

@ -15,11 +15,11 @@ def read_graph(graph_file: str = 'valos_halozat_other_dataset.txt') -> dict:
def calclulate_values(graph_data: dict): def calclulate_values(graph_data: dict):
print(f"Klaszterezettseg: {graph_data['graph'].clusters()}") print(f"Atmero: {graph_data['graph'].diameter()}")
print(f"Klaszterek: {graph_data['graph'].clusters()}")
print(f"Klaszterek szama: {len(graph_data['graph'].clusters())}")
print(f"Atlagos ut hossz: {graph_data['graph'].average_path_length()}") print(f"Atlagos ut hossz: {graph_data['graph'].average_path_length()}")
print(f"Atlagos fokszam: {(graph_data['edges'] * 2) / graph_data['vertices']}") 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()}")
if __name__ == "__main__": if __name__ == "__main__":