Get Adjacency List

Adjacency List. java is used to get the adjacency list of each node