Function to print all possible shortest sequences starting from start to target .
def displaypath ( res : List [ List [ str ] ] ) : NEW_LINE INDENT for i in res : NEW_LINE INDENT print ( " [ ▁ " , end = " " ) for j in i : print ( j , end = " , ▁ " ) print ( " ] " ) NEW_LINE DEDENT DEDENT