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
- Keep this tutorial tab and the NetworkX workbench side by side.
- Wait until NetworkX is ready.
- Paste each exercise as the whole editor. After
nx.draw, callplt.show().
Sample files
edges.csv— undirected Kenya roads with kilometresgraph.json— node-link JSON