networkx 2.8.2 Pypi GitHub Homepage
Other Docs

To remove in the future –– networkx.readwrite.gpickle

Pickled Graphs

Read and write NetworkX graphs as Python pickles.

warning

The pickle library is not secure and can be used to create arbitray objects. Only unpickle data you trust - see :None:doc:`library/pickle` for additional information.

"The pickle module implements a fundamental, but powerful algorithm for serializing and de-serializing a Python object structure. "Pickling" is the process whereby a Python object hierarchy is converted into a byte stream, and "unpickling" is the inverse operation, whereby a byte stream is converted back into an object hierarchy."

Note that NetworkX graphs can contain any hashable Python object as node (not just integers and strings). For arbitrary data types it may be difficult to represent the data as text. In that case using Python pickles to store the graph data can be used.

Format

See https://docs.python.org/3/library/pickle.html

Examples

See :

Local connectivity graph

Hover to see nodes names; edges to Self not shown, Caped at 50 nodes.

Using a canvas is more power efficient and can get hundred of nodes ; but does not allow hyperlinks; , arrows or text (beyond on hover)

SVG is more flexible but power hungry; and does not scale well to 50 + nodes.

All aboves nodes referred to, (or are referred from) current nodes; Edges from Self to other have been omitted (or all nodes would be connected to the central node "self" which is not useful). Nodes are colored by the library they belong to, and scaled with the number of references pointing them


GitHub : /networkx/readwrite/gpickle.py#0
type: <class 'module'>
Commit: