graph/internal/set: put Nodes methods on the pointer type

This removes the previously existing inconsistent behaviour when
a returned value must be used rather than the receiver.
17 files changed
tree: 9734ea39de283c77b11a9929dc24071578fa81eb
  1. .github/
  2. .travis/
  3. blas/
  4. bound/
  5. diff/
  6. floats/
  7. fourier/
  8. graph/
  9. integrate/
  10. internal/
  11. lapack/
  12. mat/
  13. mathext/
  14. num/
  15. optimize/
  16. stat/
  18. unit/
  19. .travis.yml
  20. appveyor.yml
  25. doc.go
  26. go.mod
  27. go.sum
  28. GOPHER
  29. gopher.png
  32. version.go

Gonum Build Status Build status GoDoc Go Report Card stability-unstable


The core packages of the gonum suite are written in pure Go with some assembly. Installation is done using go get.

go get -u

Supported Go versions

Gonum supports and tests on the three most recent minor versions of Go on Linux and Windows.

Build tags

The gonum packages use a variety of build tags to set non-standard build conditions. Building gonum applications will work without knowing how to use these tags, but they can be used during testing and to control the use of assembly and CGO code.

The current list of non-internal tags is as follows:

  • appengine — do not use assembly or unsafe
  • safe — synonym for appengine
  • bounds — use bounds checks even in internal calls
  • cblas — use CGO BLAS implementation in tests (only in mat package)
  • noasm — do not use assembly implementations
  • tomita — use Tomita, Tanaka, Takahashi pivot choice for maximimal clique calculation, otherwise use random pivot (only in topo package)


If you find any bugs, feel free to file an issue on the github issue tracker. Discussions on API changes, added features, code review, or similar requests are preferred on the gonum-dev Google Group.!forum/gonum-dev


Original code is licensed under the Gonum License found in the LICENSE file. Portions of the code are subject to the additional licenses found in THIRD_PARTY_LICENSES. All third party code is licensed either under a BSD or MIT license.

Code in graph/formats/dot is dual licensed Public Domain Dedication and Gonum License, and users are free to choose the license which suits their needs for this code.