I have an OrderedDict that starts with one value. and I want to add values while iterating the OD. this should be something like this:
od = OrderedDict(0:"")
for key, value in od.items():         # iterate over the values that are added 
    if value==target: return key
    key1 = foo1(key)
    if od.get(key1, None) is None: od[key1] = koo1(value)
    key2 = foo2(key)
    if od.get(key2, None) is None: od[key2] = koo2(value)
my intention is to implement a similar algo to BFS while building the "tree" and avoiding duplicates.
is OrderDict allow something like this?