[SciPy-User] Saving Graphs

David Warde-Farley dwf@cs.toronto....
Wed Dec 2 13:30:10 CST 2009


On 2-Dec-09, at 5:56 AM, Marco wrote:

> I am looking for a way to save graphs (even not single graphs, but
> rather more graphs in the same file) which is a little more clever.

If you store them as certain kinds of sparse matrix, e.g. csr, csc or  
coo, the underlying storage is NumPy arrays. You can then use np.save  
or np.savez which are considerably faster than pickling.

David


More information about the SciPy-User mailing list