[entropy.grah] improve speed of get_adjacency_map

This commit is contained in:
Fabio Erculiani
2009-12-12 11:51:57 +01:00
parent af5599b1c3
commit 3fdf8ce8ea
+1 -2
View File
@@ -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