def cg_has_node(cg, node):
    """
    Return True if the cluster graph contains the corresponding node
    :param cg: 
    :param node: 
    :return: 
    """
    return cg.nodes().__contains__(node)