dynetx.classes.function.freeze

dynetx.classes.function.freeze(G)

Modify graph to prevent further change by adding or removing nodes or edges.

Node and edge data can still be modified.

Parameters

Ggraph

A NetworkX graph

Notes

To “unfreeze” a graph you must make a copy by creating a new graph object.

See Also

is_frozen