Directed and Undirected graph

Using adjacency list