def find_groups_in_cluster(clustervs, elementgroupList):
    """
    A utility function to find vertices with the same cluster
    memberships.

    :param igraph.vertex clustervs: an igraph vertex instance

    :param list elementgroupList: a list containing the vertices to group


    :returns:
        a list-of-lists containing the groupings of the vertices
    """
    clustervertex = set([v for v in clustervs])
    return [vg for vg in elementgroupList if len(set(vg) & clustervertex) > 0]