Go implementation of graph theory algorithms