Graph algorithm(s) in Golang