Custom adjacency logic

Closes #102