title: Java implementation of adjacency list
body: <p>I have a n*m matrix with integer value at each node and its an undirected graph. I want to build an adjacency list for it. How do I do that? Any help is much appreciated. </p>