From 82fd585f1aa7df20a372df441087805bc5f1f739 Mon Sep 17 00:00:00 2001 From: Abodi Massarwa Date: Tue, 6 Aug 2024 07:01:09 +0300 Subject: [PATCH] minor modifications for the sake of testing --- .../heterogeneous_matroid_constraints_algorithms.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/fairpyx/algorithms/heterogeneous_matroid_constraints_algorithms.py b/fairpyx/algorithms/heterogeneous_matroid_constraints_algorithms.py index b98e037..e6969fb 100644 --- a/fairpyx/algorithms/heterogeneous_matroid_constraints_algorithms.py +++ b/fairpyx/algorithms/heterogeneous_matroid_constraints_algorithms.py @@ -87,7 +87,6 @@ def per_category_round_robin(alloc: AllocationBuilder, item_categories: dict[str logger.info(f'Envy graph before RR -> {envy_graph.nodes}, edges -> in {envy_graph.edges}') helper_categorization_friendly_picking_sequence(alloc, current_order, item_categories[category], agent_category_capacities, category) helper_update_envy_graph(alloc.bundles, valuation_func, envy_graph, item_categories, agent_category_capacities,callback) - callback(helper_generate_directed_graph_base64(envy_graph))#TODO remove logger.info(f'Envy graph after RR -> {envy_graph.nodes}, edges -> in {envy_graph.edges}') if not nx.is_directed_acyclic_graph(envy_graph): logger.info("Cycle removal started ") @@ -765,8 +764,8 @@ def helper_update_envy_graph(curr_bundles: dict, valuation_func: callable, envy_ #print(f"{agent1} envies {agent2}") # works great . # we need to add edge from the envier to the envyee envy_graph.add_edge(agent1, agent2) - if callback: - callback(helper_generate_directed_graph_base64(envy_graph)) + #if callback: + callback(helper_generate_directed_graph_base64(envy_graph)) logger.info(f"envy_graph.edges after update -> {envy_graph.edges}") # def visualize_graph(envy_graph):