Skip to content

Commit

Permalink
graphs for erel - spreading minbudget
Browse files Browse the repository at this point in the history
  • Loading branch information
Almog-David committed Aug 4, 2024
1 parent 630b57f commit bd81fbe
Show file tree
Hide file tree
Showing 5 changed files with 542 additions and 50 deletions.
14 changes: 1 addition & 13 deletions experiments/firefighter_problem/comparisons.py
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ def Compare_SpreadingMinBudget():
node_counts = [100, 200, 400]
edge_probabilities = [0.1, 0.5, 0.8]

def multiple_runs(runs=1):
def multiple_runs(runs=15):
for num_nodes in node_counts:
for edge_prob in edge_probabilities:
graph = generate_random_DiGraph(num_nodes=num_nodes, edge_probability=edge_prob, seed=None)
Expand Down Expand Up @@ -385,18 +385,6 @@ def extract_budget_numeric(budget):
save_to_file="./experiments/firefighter_problem/spreading_minbudget.png"
)

# ex3.clear_previous_results() # to clear previous experiments

# single_plot_results(
# results_csv_file=preprocessed_csv_file,
# filter={"graph_nodes":400},
# x_field="edge_probability",
# y_field="Budget_numeric",
# z_field="algorithm",
# mean=True,
# save_to_file="./experiments/firefighter_problem/spreading_minbudget_400_edge.png"
# )

multi_plot_results(
results_csv_file=preprocessed_csv_file,
filter={},
Expand Down
Loading

0 comments on commit bd81fbe

Please sign in to comment.