remove unused to-adjacency-list function