package uid
import "gonum.org/v1/gonum/graph/set/uid"
Package uid implements unique ID provision for graphs.
Index ¶
Constants ¶
Max is the maximum ID value.
Types ¶
type Set ¶
type Set struct {
// contains filtered or unexported fields
}
Set implements available ID storage.
func NewSet ¶
func NewSet() *Set
NewSet returns a new Set.
func (*Set) NewID ¶
NewID returns a new unique ID. The ID returned is not considered used until passed in a call to use.
func (*Set) Release ¶
Release frees the id for reuse.
func (*Set) Use ¶
Use adds the id to the used IDs in the Set.
Source Files ¶
uid.go
- Version
- v0.16.0 (latest)
- Published
- Mar 21, 2025
- Platform
- linux/amd64
- Imports
- 2 packages
- Last checked
- 1 week ago –
Tools for package owners.