simplify adjacency list, now only edges list