You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TOP_Inst = Instancia_TOP("C:/Users/Andres Prieto/Documents/Master Investigación en Inteligencia Artificial/Resolución de Problemas con Metaheurísticos/Trabajo/Team_Orienteering_Problem/TOP_Inst/Set_21_234/p2.2.a.txt")
edges = list(itools.combinations(self.nodes, 2))
nodes_out = [(i , self.distances[ 0 , i] + self.distances[i, self.N_nodes - 1]) for i in nodes if self.distances[ 0 , i] + self.distances[i, self.N_nodes - 1] > self.B_time_budget]
G = nx.Graph()
G.add_nodes_from(nodes)
#G.add_edges_from(edges)
color_node = []
position = { i : (coor_x[i], coor_y[i]) for i in nodes}
plt.plot(1)
nx.draw_networkx(G, pos = position , with_labels=True , node_size=self.profit*10)