similgraph is a golang package that provides primitives for computing a cosine similarity graph whose edges are computed on the fly.
This package can be installed with the go get command:
go get github.com/ebonetti/similgraph
API documentation can be found in the associated godoc reference