def overlapping_community(G, community):
    """Return True if community partitions G into overlapping sets.
    """
    community_size = sum(len(c) for c in community)
    # community size must be larger to be overlapping
    if not len(G) < community_size:
        return False
    # check that the set of nodes in the communities is the same as G
    if not set(G) == set.union(*community):
        return False
    return True