def get_graph_counts(community_counts, labels_to_count):
    """
    Aggregate community counts across communities

    """
    graph_counts = dict.fromkeys(labels_to_count, {})
    # Aggregate counts across graph
    for community in community_counts:
        for label in community_counts[community]:
            for (label_val, label_val_count) in community_counts[community][label].items():

                if label_val in graph_counts[label]:
                    graph_counts[label][label_val] += label_val_count
                else:
                    graph_counts[label][label_val] = label_val_count
    return graph_counts