import pickle


def read_pickle(name):
    """
    read .pickle file
    :param name: dataset name
    :return: a dict containing adjacency matrix, nx.Graph() and its node labels
    """
    with open('data/{}.pickle'.format(name), 'rb') as f:
        result = pickle.load(f)
    return result