tkchafin / autostreamtree

Stream trees for SNP datasets
GNU General Public License v3.0
1 stars 0 forks source link

Update deprecated code for networkx > 3 #3

Closed tkchafin closed 12 months ago

tkchafin commented 1 year ago

write_gpickle and read_gpickle deprecated

https://networkx.org/documentation/stable/release/migration_guide_from_2.x_to_3.0.html

Replacement `import pickle

G = nx.path_graph(4) with open('test.gpickle', 'wb') as f: ... pickle.dump(G, f, pickle.HIGHEST_PROTOCOL) ... with open('test.gpickle', 'rb') as f: ... G = pickle.load(f) ...`

tkchafin commented 12 months ago

Fixed