Share and Preserve Networks

At this point, you must be very proud of the job well done. The network of foods and nutrients has been extracted, constructed, and visualized. It’s time to save it into a file, and there are several compelling reasons for doing so:

  1. You never analyzed the network, because you don’t know how. When you read through Chapter 8, Measuring Networks and Chapter 11, Unearthing the Network Structure, you’ll be able to calculate various network measures and extract network structure. You’ll need the network when you get there, but you won’t have it unless you save it now.

  2. You may want to get a better network visualization of the network with Gephi. The only way for NetworkX to pass the network to Gephi is via a file. ...

Get Complex Network Analysis in Python now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.