Graph functions in Go.