networkx tutorial · 2020. 10. 13. · networkx tutorial eecs 4414 information networks tilemachos...
TRANSCRIPT
![Page 1: NetworkX tutorial · 2020. 10. 13. · NetworkX tutorial EECS 4414 Information Networks Tilemachos Pechlivanoglou. 2 Basic Example. 3 Installation. 4 Graph types. 5 Graph types. 6](https://reader033.vdocuments.net/reader033/viewer/2022053113/608a90459c0bff0d18578591/html5/thumbnails/1.jpg)
1
Click to edit Master text styles
Second level
Third level
Fourth level
Fifth level
NetworkX tutorial
EECS 4414 Information Networks
Tilemachos Pechlivanoglou
![Page 2: NetworkX tutorial · 2020. 10. 13. · NetworkX tutorial EECS 4414 Information Networks Tilemachos Pechlivanoglou. 2 Basic Example. 3 Installation. 4 Graph types. 5 Graph types. 6](https://reader033.vdocuments.net/reader033/viewer/2022053113/608a90459c0bff0d18578591/html5/thumbnails/2.jpg)
2
Basic Example
![Page 3: NetworkX tutorial · 2020. 10. 13. · NetworkX tutorial EECS 4414 Information Networks Tilemachos Pechlivanoglou. 2 Basic Example. 3 Installation. 4 Graph types. 5 Graph types. 6](https://reader033.vdocuments.net/reader033/viewer/2022053113/608a90459c0bff0d18578591/html5/thumbnails/3.jpg)
3
Installation
![Page 4: NetworkX tutorial · 2020. 10. 13. · NetworkX tutorial EECS 4414 Information Networks Tilemachos Pechlivanoglou. 2 Basic Example. 3 Installation. 4 Graph types. 5 Graph types. 6](https://reader033.vdocuments.net/reader033/viewer/2022053113/608a90459c0bff0d18578591/html5/thumbnails/4.jpg)
4
Graph types
![Page 5: NetworkX tutorial · 2020. 10. 13. · NetworkX tutorial EECS 4414 Information Networks Tilemachos Pechlivanoglou. 2 Basic Example. 3 Installation. 4 Graph types. 5 Graph types. 6](https://reader033.vdocuments.net/reader033/viewer/2022053113/608a90459c0bff0d18578591/html5/thumbnails/5.jpg)
5
Graph types
![Page 6: NetworkX tutorial · 2020. 10. 13. · NetworkX tutorial EECS 4414 Information Networks Tilemachos Pechlivanoglou. 2 Basic Example. 3 Installation. 4 Graph types. 5 Graph types. 6](https://reader033.vdocuments.net/reader033/viewer/2022053113/608a90459c0bff0d18578591/html5/thumbnails/6.jpg)
6
Adding nodes
![Page 7: NetworkX tutorial · 2020. 10. 13. · NetworkX tutorial EECS 4414 Information Networks Tilemachos Pechlivanoglou. 2 Basic Example. 3 Installation. 4 Graph types. 5 Graph types. 6](https://reader033.vdocuments.net/reader033/viewer/2022053113/608a90459c0bff0d18578591/html5/thumbnails/7.jpg)
7
Adding edges
![Page 8: NetworkX tutorial · 2020. 10. 13. · NetworkX tutorial EECS 4414 Information Networks Tilemachos Pechlivanoglou. 2 Basic Example. 3 Installation. 4 Graph types. 5 Graph types. 6](https://reader033.vdocuments.net/reader033/viewer/2022053113/608a90459c0bff0d18578591/html5/thumbnails/8.jpg)
8
Node attributes
![Page 9: NetworkX tutorial · 2020. 10. 13. · NetworkX tutorial EECS 4414 Information Networks Tilemachos Pechlivanoglou. 2 Basic Example. 3 Installation. 4 Graph types. 5 Graph types. 6](https://reader033.vdocuments.net/reader033/viewer/2022053113/608a90459c0bff0d18578591/html5/thumbnails/9.jpg)
9
Edge attributes
![Page 10: NetworkX tutorial · 2020. 10. 13. · NetworkX tutorial EECS 4414 Information Networks Tilemachos Pechlivanoglou. 2 Basic Example. 3 Installation. 4 Graph types. 5 Graph types. 6](https://reader033.vdocuments.net/reader033/viewer/2022053113/608a90459c0bff0d18578591/html5/thumbnails/10.jpg)
10
Simple properties
![Page 11: NetworkX tutorial · 2020. 10. 13. · NetworkX tutorial EECS 4414 Information Networks Tilemachos Pechlivanoglou. 2 Basic Example. 3 Installation. 4 Graph types. 5 Graph types. 6](https://reader033.vdocuments.net/reader033/viewer/2022053113/608a90459c0bff0d18578591/html5/thumbnails/11.jpg)
11
Neighbors
![Page 12: NetworkX tutorial · 2020. 10. 13. · NetworkX tutorial EECS 4414 Information Networks Tilemachos Pechlivanoglou. 2 Basic Example. 3 Installation. 4 Graph types. 5 Graph types. 6](https://reader033.vdocuments.net/reader033/viewer/2022053113/608a90459c0bff0d18578591/html5/thumbnails/12.jpg)
12
Degree
![Page 13: NetworkX tutorial · 2020. 10. 13. · NetworkX tutorial EECS 4414 Information Networks Tilemachos Pechlivanoglou. 2 Basic Example. 3 Installation. 4 Graph types. 5 Graph types. 6](https://reader033.vdocuments.net/reader033/viewer/2022053113/608a90459c0bff0d18578591/html5/thumbnails/13.jpg)
13
Simple graph generators
![Page 14: NetworkX tutorial · 2020. 10. 13. · NetworkX tutorial EECS 4414 Information Networks Tilemachos Pechlivanoglou. 2 Basic Example. 3 Installation. 4 Graph types. 5 Graph types. 6](https://reader033.vdocuments.net/reader033/viewer/2022053113/608a90459c0bff0d18578591/html5/thumbnails/14.jpg)
14
Random graph generators
![Page 15: NetworkX tutorial · 2020. 10. 13. · NetworkX tutorial EECS 4414 Information Networks Tilemachos Pechlivanoglou. 2 Basic Example. 3 Installation. 4 Graph types. 5 Graph types. 6](https://reader033.vdocuments.net/reader033/viewer/2022053113/608a90459c0bff0d18578591/html5/thumbnails/15.jpg)
15
Useful functions
![Page 16: NetworkX tutorial · 2020. 10. 13. · NetworkX tutorial EECS 4414 Information Networks Tilemachos Pechlivanoglou. 2 Basic Example. 3 Installation. 4 Graph types. 5 Graph types. 6](https://reader033.vdocuments.net/reader033/viewer/2022053113/608a90459c0bff0d18578591/html5/thumbnails/16.jpg)
16
Plotting with matplotlib
![Page 17: NetworkX tutorial · 2020. 10. 13. · NetworkX tutorial EECS 4414 Information Networks Tilemachos Pechlivanoglou. 2 Basic Example. 3 Installation. 4 Graph types. 5 Graph types. 6](https://reader033.vdocuments.net/reader033/viewer/2022053113/608a90459c0bff0d18578591/html5/thumbnails/17.jpg)
17
Showing plots
Instead of saving the figure, simply show it with:
Won’t work in Linux Subsystem for Windows!
Instead, copy your files to a Windows folder (/mnt/c/Users/…)and run it with python from inside Windows (cmd/PowerShell)
![Page 18: NetworkX tutorial · 2020. 10. 13. · NetworkX tutorial EECS 4414 Information Networks Tilemachos Pechlivanoglou. 2 Basic Example. 3 Installation. 4 Graph types. 5 Graph types. 6](https://reader033.vdocuments.net/reader033/viewer/2022053113/608a90459c0bff0d18578591/html5/thumbnails/18.jpg)
18
Resources
![Page 19: NetworkX tutorial · 2020. 10. 13. · NetworkX tutorial EECS 4414 Information Networks Tilemachos Pechlivanoglou. 2 Basic Example. 3 Installation. 4 Graph types. 5 Graph types. 6](https://reader033.vdocuments.net/reader033/viewer/2022053113/608a90459c0bff0d18578591/html5/thumbnails/19.jpg)
19
Click to edit Master text styles
Second level
Third level
Fourth level
Fifth levelSlides based on NetworkX Tutorial by Evan Rosen
Thanks