Test writing graph search (BFS, DFS) in Go