Preliminary code for adjacency lists representation of graphs.