The result is a most extraordinary looking creature, a network of worms with numerous heads, each branch being eventually provided with one of its own.
Chapter 3Introducing NetworkX
Any network starts with one node, and we can add more nodes and edges to it, as needed. The attributes of those nodes and edges describe their properties. The node, edge, and attribute data come from other data structures or files.
In this chapter, you will learn NetworkX functions for starting a new network, populating it with nodes and edges, and decorating them with attributes. You will also learn how to create a “quick and dirty” visualization of the constructed network (we will give you more powerful visualization ...
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.