networkx tutorial · 2020. 10. 13. · networkx tutorial eecs 4414 information networks tilemachos...

19
1 Click to edit Master text styles Second level Fourth level Fifth level NetworkX tutorial EECS 4414 Information Networks Tilemachos Pechlivanoglou

Upload: others

Post on 16-Nov-2020

9 views

Category:

Documents


0 download

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

19

Click to edit Master text styles

Second level

Third level

Fourth level

Fifth levelSlides based on NetworkX Tutorial by Evan Rosen

Thanks