aima/search.py
def connect1(self, A, B, distance):
        "Add a link from A to B of given distance, in one direction only."
        self.dict.setdefault(A,{})[B] = distance
def connect1(self, A, B, distance):
        "Add a link from A to B of given distance, in one direction only."
        self.dict.setdefault(A,{})[B] = distance
def connect1 ( self , A , B , distance ) : self . dict . setdefault ( A , { } ) [ B ] = distance
Add a link from A to B of given distance, in one direction only.
Add a link from A to B of given distance in one direction only .