putting the go graph code together