return filegraph(next_item, current)
for next_item in current_dir_items
N = 10
a = [10, 5, 2, 3, 7, 5, -1]
def findFirstPair():
visited = {}
for i in range(len(a)):
if N - a[i] in visited:
print("First pair has indexes: (%d, %d) and values: (%d, %d)" % (visited[N - a[i]], i, N - a[i], a[i]))
return
visited[a[i]] = i
return
findFirstPair()