clean up adjacency maps