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
"""Compares the nweights hold by the graph with the once provided (as a dict)."""
168
168
unittest.assertTrue(len(self.__nweights) ==len(expected_result), '{}: Expected {} edges, but {} were added.'.format(msg_base, len(expected_result), len(self.__nweights)))
169
169
node_id_set=set()
170
-
forkeyinself.__nweights.iterkeys():
170
+
forkeyinself.__nweights.keys():
171
171
node_id_set.add(key[0])
172
172
node_id_set.add(key[1])
173
173
unittest.assertTrue(len(node_id_set) ==self.__nodes), '{}: Not all {} node-ids appeared in the edges, but only {}. Missing are {}.'.format(msg_base, self.__nodes, len(node_id_set), set(range(0, self.__nodes)) -node_id_set)
0 commit comments