build graph as adjList done