def reduce_graph_dataset(graphs, graphs_to_keep):
    """
    graphs_to_keep must only have graphids that are valid
    """
    if graphs_to_keep is None:
        return graphs
    else:
        reduced_dataset = dict()
        for graphId in graphs_to_keep:
            reduced_dataset[graphId] = graphs[graphId]

        return reduced_dataset