Interpret adjacency lists for algorithms (#713)