@@ -896,7 +896,7 @@ def benchmark_approx_comparison(
896896 TIMEOUT_MAX = 600
897897
898898 EXACT_METHODS = [
899- # get_decycling_number_naive,
899+ get_decycling_number_naive ,
900900 get_decycling_number_razgon ,
901901 get_decycling_number_fomin ,
902902 get_decycling_number_xiao ,
@@ -908,110 +908,110 @@ def benchmark_approx_comparison(
908908 approx_decycling_number_stanojevic ,
909909 ]
910910
911- # benchmark_exact_exec_time(
912- # directory_path="Benchmark graphs/small for naive",
913- # methods_list=EXACT_METHODS,
914- # timeout_seconds=TIMEOUT_MAX,
915- # output_filename="Benchmark results/final_ben_small_for_naive.txt",
916- # times=1,
917- # )
918-
919- benchmark_exact_exec_time (
920- directory_path = "Benchmark graphs/random graphs density" ,
921- methods_list = EXACT_METHODS ,
922- timeout_seconds = TIMEOUT_MAX ,
923- output_filename = "Benchmark results/final_ben_random_density.txt" ,
924- )
925-
926- benchmark_exact_exec_time (
927- directory_path = "Benchmark graphs/density" ,
928- methods_list = EXACT_METHODS ,
929- timeout_seconds = TIMEOUT_MAX ,
930- output_filename = "Benchmark results/final_ben_density.txt" ,
931- )
932-
933- benchmark_exact_exec_time (
934- directory_path = "Benchmark graphs/chromatic number" ,
935- methods_list = EXACT_METHODS ,
936- timeout_seconds = TIMEOUT_MAX ,
937- output_filename = "Benchmark results/final_ben_chromatic_number.txt" ,
938- )
939-
940- benchmark_exact_exec_time (
941- directory_path = "Benchmark graphs/diameter" ,
942- methods_list = EXACT_METHODS ,
943- timeout_seconds = TIMEOUT_MAX ,
944- output_filename = "Benchmark results/final_ben_diameter.txt" ,
945- )
946-
947911 benchmark_exact_exec_time (
948- directory_path = "Benchmark graphs/domination number " ,
912+ directory_path = "Benchmark graphs/small for naive " ,
949913 methods_list = EXACT_METHODS ,
950914 timeout_seconds = TIMEOUT_MAX ,
951- output_filename = "Benchmark results/final_ben_domination_number.txt" ,
915+ output_filename = "Benchmark results/final_ben_small_for_naive.txt" ,
916+ times = 1 ,
952917 )
953918
954- benchmark_exact_exec_time (
955- directory_path = "Benchmark graphs/girth" ,
956- methods_list = EXACT_METHODS ,
957- timeout_seconds = TIMEOUT_MAX ,
958- output_filename = "Benchmark results/final_ben_girth.txt" ,
959- )
960-
961- benchmark_exact_exec_time (
962- directory_path = "Benchmark graphs/longest induced cycle" ,
963- methods_list = EXACT_METHODS ,
964- timeout_seconds = TIMEOUT_MAX ,
965- output_filename = "Benchmark results/final_ben_long_ind_cyc.txt" ,
966- )
967-
968- benchmark_exact_exec_time (
969- directory_path = "Benchmark graphs/radius" ,
970- methods_list = EXACT_METHODS ,
971- timeout_seconds = TIMEOUT_MAX ,
972- output_filename = "Benchmark results/final_ben_radius.txt" ,
973- )
974-
975- benchmark_exact_exec_time (
976- directory_path = "Benchmark graphs/treewidth" ,
977- methods_list = EXACT_METHODS ,
978- timeout_seconds = TIMEOUT_MAX ,
979- output_filename = "Benchmark results/final_ben_treewidth.txt" ,
980- )
981-
982- benchmark_exact_exec_time (
983- directory_path = "Benchmark graphs/vertex connectivity" ,
984- methods_list = EXACT_METHODS ,
985- timeout_seconds = TIMEOUT_MAX ,
986- output_filename = "Benchmark results/final_ben_vert_conn.txt" ,
987- )
988-
989- benchmark_approximation_quality (
990- directory_path = "Benchmark graphs/random graphs density" ,
991- approx_methods_list = APPROX_METHODS ,
992- exact_method_func = get_decycling_number_xiao ,
993- timeout_seconds = TIMEOUT_MAX ,
994- output_filename = "Benchmark results/final_ben_approx_random_density.txt" ,
995- )
996-
997- benchmark_approximation_quality (
998- directory_path = "Benchmark graphs/density" ,
999- approx_methods_list = APPROX_METHODS ,
1000- exact_method_func = get_decycling_number_xiao ,
1001- timeout_seconds = TIMEOUT_MAX ,
1002- output_filename = "Benchmark results/final_ben_approx_density.txt" ,
1003- )
1004-
1005- benchmark_approximation_quality_with_dn (
1006- directory_path = "Benchmark graphs/more vertices with dn" ,
1007- approx_methods_list = APPROX_METHODS ,
1008- timeout_seconds = TIMEOUT_MAX ,
1009- output_filename = "Benchmark results/final_ben_approx_more_v_dn.txt" ,
1010- )
1011-
1012- benchmark_approx_comparison (
1013- directory_path = "Benchmark graphs/random big" ,
1014- methods_list = APPROX_METHODS ,
1015- timeout_seconds = TIMEOUT_MAX ,
1016- output_filename = "Benchmark results/final_ben_approx_random_big.txt" ,
1017- )
919+ # benchmark_exact_exec_time(
920+ # directory_path="Benchmark graphs/random graphs density",
921+ # methods_list=EXACT_METHODS,
922+ # timeout_seconds=TIMEOUT_MAX,
923+ # output_filename="Benchmark results/final_ben_random_density.txt",
924+ # )
925+ #
926+ # benchmark_exact_exec_time(
927+ # directory_path="Benchmark graphs/density",
928+ # methods_list=EXACT_METHODS,
929+ # timeout_seconds=TIMEOUT_MAX,
930+ # output_filename="Benchmark results/final_ben_density.txt",
931+ # )
932+ #
933+ # benchmark_exact_exec_time(
934+ # directory_path="Benchmark graphs/chromatic number",
935+ # methods_list=EXACT_METHODS,
936+ # timeout_seconds=TIMEOUT_MAX,
937+ # output_filename="Benchmark results/final_ben_chromatic_number.txt",
938+ # )
939+ #
940+ # benchmark_exact_exec_time(
941+ # directory_path="Benchmark graphs/diameter",
942+ # methods_list=EXACT_METHODS,
943+ # timeout_seconds=TIMEOUT_MAX,
944+ # output_filename="Benchmark results/final_ben_diameter.txt",
945+ # )
946+ #
947+ # benchmark_exact_exec_time(
948+ # directory_path="Benchmark graphs/domination number",
949+ # methods_list=EXACT_METHODS,
950+ # timeout_seconds=TIMEOUT_MAX,
951+ # output_filename="Benchmark results/final_ben_domination_number.txt",
952+ # )
953+ #
954+ # benchmark_exact_exec_time(
955+ # directory_path="Benchmark graphs/girth",
956+ # methods_list=EXACT_METHODS,
957+ # timeout_seconds=TIMEOUT_MAX,
958+ # output_filename="Benchmark results/final_ben_girth.txt",
959+ # )
960+ #
961+ # benchmark_exact_exec_time(
962+ # directory_path="Benchmark graphs/longest induced cycle",
963+ # methods_list=EXACT_METHODS,
964+ # timeout_seconds=TIMEOUT_MAX,
965+ # output_filename="Benchmark results/final_ben_long_ind_cyc.txt",
966+ # )
967+ #
968+ # benchmark_exact_exec_time(
969+ # directory_path="Benchmark graphs/radius",
970+ # methods_list=EXACT_METHODS,
971+ # timeout_seconds=TIMEOUT_MAX,
972+ # output_filename="Benchmark results/final_ben_radius.txt",
973+ # )
974+ #
975+ # benchmark_exact_exec_time(
976+ # directory_path="Benchmark graphs/treewidth",
977+ # methods_list=EXACT_METHODS,
978+ # timeout_seconds=TIMEOUT_MAX,
979+ # output_filename="Benchmark results/final_ben_treewidth.txt",
980+ # )
981+ #
982+ # benchmark_exact_exec_time(
983+ # directory_path="Benchmark graphs/vertex connectivity",
984+ # methods_list=EXACT_METHODS,
985+ # timeout_seconds=TIMEOUT_MAX,
986+ # output_filename="Benchmark results/final_ben_vert_conn.txt",
987+ # )
988+ #
989+ # benchmark_approximation_quality(
990+ # directory_path="Benchmark graphs/random graphs density",
991+ # approx_methods_list=APPROX_METHODS,
992+ # exact_method_func=get_decycling_number_xiao,
993+ # timeout_seconds=TIMEOUT_MAX,
994+ # output_filename="Benchmark results/final_ben_approx_random_density.txt",
995+ # )
996+ #
997+ # benchmark_approximation_quality(
998+ # directory_path="Benchmark graphs/density",
999+ # approx_methods_list=APPROX_METHODS,
1000+ # exact_method_func=get_decycling_number_xiao,
1001+ # timeout_seconds=TIMEOUT_MAX,
1002+ # output_filename="Benchmark results/final_ben_approx_density.txt",
1003+ # )
1004+ #
1005+ # benchmark_approximation_quality_with_dn(
1006+ # directory_path="Benchmark graphs/more vertices with dn",
1007+ # approx_methods_list=APPROX_METHODS,
1008+ # timeout_seconds=TIMEOUT_MAX,
1009+ # output_filename="Benchmark results/final_ben_approx_more_v_dn.txt",
1010+ # )
1011+ #
1012+ # benchmark_approx_comparison(
1013+ # directory_path="Benchmark graphs/random big",
1014+ # methods_list=APPROX_METHODS,
1015+ # timeout_seconds=TIMEOUT_MAX,
1016+ # output_filename="Benchmark results/final_ben_approx_random_big.txt",
1017+ # )
0 commit comments