Brought tilegraph.go in line with new API
Fixed tilegraph and tests, proving the conversion was successful for the little I already tested