update adjacency list repr.