Move adjacency list into sub-package.