finished created adjacency list graph representation