I have an undirected graph of letters in a rectangular format, where each node has an edge to the adjacent neighboring node. For example:
d x f p o y a a z t i b