model + firm

This commit is contained in:
2023-02-26 21:58:05 +08:00
parent bf7bb217af
commit f8d91df954
3 changed files with 40 additions and 13 deletions

View File

@@ -15,3 +15,8 @@ class FirmAgent(ap.Agent):
self.dct_product_is_disrupted = dict.fromkeys(list_product, False)
self.dct_product_is_removed = dict.fromkeys(list_product, False)
def remove_edge_to_customer_if_removed(self, remove_product):
t = self.firm_network.graph.out_edges(
self.firm_network.positions[self], keys=True, data=True)
print(t)