From 3fdf8ce8ea0734204d6b97f005fe9821eac62b9e Mon Sep 17 00:00:00 2001 From: Fabio Erculiani Date: Sat, 12 Dec 2009 11:51:57 +0100 Subject: [PATCH] [entropy.grah] improve speed of get_adjacency_map --- libraries/entropy/graph.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libraries/entropy/graph.py b/libraries/entropy/graph.py index c25f981c2..57d8d682d 100644 --- a/libraries/entropy/graph.py +++ b/libraries/entropy/graph.py @@ -384,8 +384,7 @@ class Graph(object): my_graph_map = set() for arch in node_item.arches(): if node_item.is_arch_outgoing(arch): - for endpoint in arch.endpoints(): - my_graph_map.add(endpoint) + my_graph_map |= arch.endpoints() graph_map[node_item] = my_graph_map