Source code for easygraph.readwrite.pickle

#!/usr/bin/env python3


[docs] def read_pickle(file_name): import pickle with open(file_name, "rb") as f: return pickle.load(f)
[docs] def write_pickle(file_name, obj): import pickle with open(file_name, "wb") as f: pickle.dump(obj, f)