When migrating from networkx version 1.1 to 2.0 I have encountered an issue regarding networkx.read_gpickle
function.
In version 1.1 the returned value is a Graph object containing 'edge'
, 'adj'
and 'node'
attributes. Whereas in version 2.0 the same function returns a Graph object containing only the 'edge'
attribute.
When calling len(network.nodes())
the following error is produced:
{AttributeError}'Graph' object has no attribute '_node'
Is there a way to obtain obtain the 'node'
attribute as well in version 2.0?