Also, it sounds like the way you want to store your nodes is in an adjacency matrix/list. Or maybe, some partial version of that, only concerned with nodes that are close to the current node.
One more good reference, to help get you using the right language: Glossary of graph theory - Wikipedia, the free encyclopedia.
Note, if time is of little concern, but space is, you can use DFS to exhaustively search every possible path.