Learn NetworkX

How this course works, what the workbench can do, and the chapter list.

This is a NetworkX course for the Swiftener NetworkX editor. nx is NetworkX. Hand-rolled BFS belongs in Introduction to Computer Science with Python. Dijkstra by hand belongs in Introduction to Data Structures. This course stays on the library and on drawing.

Goal

Finish every chapter by running the copy-paste blocks. The last chapter is Kenya roads you can reuse.

How to take the course

  1. Keep this tutorial tab and the NetworkX workbench side by side.
  2. Wait until NetworkX is ready.
  3. Paste each exercise as the whole editor. After nx.draw, call plt.show().

Sample files

  • edges.csv — undirected Kenya roads with kilometres
  • graph.json — node-link JSON

Chapter list