Added adjacency check between two vertices. Part of #9