Use btree_set for the adjacency list