File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ def __init__(self):
21
21
22
22
# A dictionary mapping items to the head and tail of a path of
23
23
# "neighbors" that will hit every node containing that item.
24
- self ._paths = {}
24
+ self ._routes = {}
25
25
26
26
def add (self , transaction ):
27
27
"""
@@ -45,12 +45,12 @@ def add(self, transaction):
45
45
# Update the path of nodes that contain this item to include
46
46
# our new node.
47
47
try :
48
- path = self ._paths [item ]
48
+ path = self ._routes [item ]
49
49
path [1 ].neighbor = next_point # path[1] is the tail
50
50
path [1 ] = next_point
51
51
except KeyError :
52
52
# First node for this item; start a new path.
53
- self ._paths [item ] = [next_point , next_point ]
53
+ self ._routes [item ] = [next_point , next_point ]
54
54
55
55
point = next_point
56
56
@@ -60,7 +60,7 @@ def nodes(self, item):
60
60
"""
61
61
62
62
try :
63
- node = self ._paths [item ][0 ]
63
+ node = self ._routes [item ][0 ]
64
64
except KeyError :
65
65
return
66
66
You can’t perform that action at this time.
0 commit comments