The videos below show three different, popular ways to implement graphs in a program:
Edge List
Adjacency Matrix
Adjacency List