def compareNodes(node_1, node_2):
    """
    Compares two nodes to check if they are equal
    
    :param      node_1:  The first node to check
    :type       node_1:  Node type
    :param      node_2:  The second node to check
    :type       node_2:  Node type
    
    :returns:   True or False
    :rtype:     Boolean type
    """
    if (node_1.x == node_2.x) and (node_1.y == node_2.y):
        return True
    else:
        return False