Graph functions in Golang.