pysal.explore.spaghetti.Network.savenetwork

Network.savenetwork(filename)[source]

Save a network to disk as a binary file.

Parameters:
filename : str

The filename where the network should be saved. This should be a full path or it will be save in the current directory.

Examples

>>> import pysal.explore.spaghetti as spgh
>>> ntw = spgh.Network(examples.get_path('streets.shp'))
>>> ntw.savenetwork('mynetwork.pkl')