Network chart

A Network diagram (or chart, or graph) show interconnections between a set of entities. Each entity is represented by a node (or vertices). Connection between nodes are represented through links (or edges). This section mainly focuses on NetworkX, probably the best library for this kind of chart with python.

Network diagram with the NetworkX library

NetworkX is a Python package for the creation, manipulation, and study of the structure, dynamics, and functions of complex networks..

The examples below will guide you through a migration dataset already discussed in It starts by describing the input dataset and the basic usage of the Chord() function.

A common need when dealing with network charts is to map a numeric or categorical variable to the nodes or edges appearance. This is totally doable and adds some insight to the figure.

Network diagram with graph-tool

The graph tool library is a python library implemented in C++. It makes it highly efficient to draw networks containing many nodes. Graphics to come.


👋 This document is a work by Yan Holtz. You can contribute on github, send me a feedback on twitter or subscribe to the newsletter to know when new examples are published! 🔥