[Improvement] Added new feature to unfinished implementation of adjacency list.