7 Commits

Author SHA1 Message Date
9df6c6b147 fix 2nd pipeline
All checks were successful
continuous-integration/drone/push Build is passing
2020-09-24 15:55:31 +02:00
61e414a3ce multiple pipelines 2020-09-24 15:55:08 +02:00
dd43985224 duplicate step names 2020-09-24 15:53:19 +02:00
23cb722cd9 fix yaml
Some checks reported errors
continuous-integration/drone/push Build encountered an error
2020-09-24 15:53:03 +02:00
602f7d4f1b kebab 2020-09-24 15:52:07 +02:00
ca44105fae use connected components
Some checks reported errors
continuous-integration/drone/push Build encountered an error
2020-09-24 14:07:58 +02:00
0c4842a6f5 use minimum node cut
Some checks failed
continuous-integration/drone/push Build is failing
2020-09-24 13:53:44 +02:00
2 changed files with 18 additions and 17 deletions

View File

@ -1,11 +1,24 @@
kind: pipeline
type: docker
name: default
name: run_algo
steps:
- name: run_tournament
- name: algo
image: "python:3.8"
commands:
- pip3 install -r requirements.txt
- python3 destroy_p3.py -g GBA1000.txt
---
kind: pipeline
type: docker
name: check_result
steps:
- name: result
image: "python:3.8"
commands:
- pip3 install -r requirements.txt
- python3 destroy_p3.py -g GBA1000.txt > gba1000d.txt
- python3 analyse_p3.py -g GBA1000.txt -d gba1000d.txt
- python3 analyse_p3.py -g GBA1000.txt -d gba1000d.txt

View File

@ -1,7 +1,6 @@
import numpy as np
import networkx as nx
import argparse
import time
parser = argparse.ArgumentParser(description='')
parser.add_argument('-g', '--graph', dest='graph', action='store', default=None)
@ -64,16 +63,5 @@ def remove_highest_kebab() -> list:
return del_list
print(len(remove_highest_kebab()))
# target_runtime = 600
# start_time = time.time()
# results = []
# while (time.time() - start_time) < target_runtime:
# for _ in range(50):
# results.append(run_random_once())
#
# print("Total runs: ", len(results))
# print("Min: ", min(results))
# print("Max: ", max(results))
# print("Runtime: ", time.time() - start_time)
for kebab in remove_highest_kebab():
print(kebab)