17 lines
503 B
Python
Executable file
17 lines
503 B
Python
Executable file
#!/usr/bin/env python3
|
|
|
|
from os import system
|
|
from sys import argv, exit
|
|
|
|
if len(argv) != 3:
|
|
print(f"usage: {argv[0]} <graph> <output_prefix>")
|
|
exit(1)
|
|
|
|
graph = argv[1]
|
|
output = argv[2]
|
|
|
|
for i in range(2, 7):
|
|
num = 2**i
|
|
|
|
system(f"cargo run --release --bin=gen_landmarks_greedy -- --graph={graph} --output={output}_greedy_{ num }.bin --amount { num }")
|
|
system(f"cargo run --release --bin=gen_landmarks_random -- --graph={graph} --output={output}_random_{ num }.bin --amount { num }")
|