Introduction to graphs
Data AND connections are important
Things with physical connection
Things with non-physical connection
We save data
We save info about connection
Node or Vertex (contains data)
Edge (connection)
Adjacent nodes = connected nodes
Neighbors = connected nodes
Degree = amount of neighbors
Direction (=> Directed Graph)
Weight (=> Weighted Graph)
Other data?
Dense graph = all or nearly all nodes are connected (many connections)
Sparse graph = significantly less connections (compared to max)
Let's code Donald Duck cartoon characters to graph
Donald Duck
Daisy Duck
Huey, Dewey, and Louie
Gladstone Gander
Scrooge McDuck
Ludwig Von Drake
Flintheart Glomgold
Micky Mouse
Your own solution
No data, just connections
Your own solution
Data and connections
Let's use some official representations