Versions in this module Expand all Collapse all v1 v1.1.0 Dec 12, 2022 Changes in this version + const NormalizedMaxWeight + const NormalizedMinWeight + func Hash(key []byte) uint64 + func Sort(nodes []uint64, hash uint64) []uint64 + func SortByWeight(nodes []uint64, weights []float64, hash uint64) []uint64 + func SortSliceByIndex(slice interface{}, hash uint64) + func SortSliceByValue(slice interface{}, hash uint64) + func SortSliceByWeightIndex(slice interface{}, weights []float64, hash uint64) + func SortSliceByWeightValue(slice interface{}, weights []float64, hash uint64) + func ValidateWeights(weights []float64) error + type Hasher interface + Hash func() uint64