def isLegalNode(string):
    allNodesMap = mapAllNodes()
    for floor in allNodesMap:
        for roomStr in allNodesMap[floor]:
            if (string == roomStr):
                return True
    return False
def isLegalNode(string):
    allNodesMap = mapAllNodes()
    for floor in allNodesMap:
        for roomStr in allNodesMap[floor]:
            if (string == roomStr):
                return True
    return False