def graph_input_slice(gr, sl):
    """ Produce a slice of the original graph dataset.

    Example: grs = graph_input_slice(gr, slice(500, 1000)) """
    grs = dict()
    for k, v in gr.items():
        grs[k] = v[sl]
    return grs