adjlist graph sorted edge list