Stores an adjacency graph in a 
matrix and list, provides operations
to process the graph