Graph Theory - Matrix and Adjacency List