def METHOD_NAME(node_and_neighborhood):
    """Returns the cost-effectiveness of greedily choosing the given
    node.
    `node_and_neighborhood` is a two-tuple comprising a node and its
    closed neighborhood.
    """
    v, neighborhood = node_and_neighborhood
    return G.nodes[v].get(weight, 1) / len(neighborhood - dom_set)