Basic graph representation as adjacency list and adjacency matrix