Read graph object in Python pickle format.
Pickles are a serialized byte stream of a Python object [R232]. This format will preserve Python objects used as nodes or edges.
Parameters : | path : file or string
|
---|---|
Returns : | G : graph
|
References
[R232] | (1, 2) http://docs.python.org/library/pickle.html |
Examples
>>> G=nx.path_graph(4)
>>> nx.write_gpickle(G,"test.gpickle")
>>> G=nx.read_gpickle("test.gpickle")