Versions in this module Expand all Collapse all v0 v0.2.0 Jun 5, 2026 v0.1.0 Jun 2, 2026 Changes in this version + var ErrMapperEntryCorrupted = errors.New("graph: Mapper.LoadFrom entries corrupted") + var ErrMapperNotEmpty = errors.New("graph: Mapper.LoadFrom on non-empty mapper") + func MapperShardCount() int + func MapperShardOf(id NodeID) uint64 + type Graph interface + AddEdge func(src, dst N, w W) error + AddNode func(n N) error + HasEdge func(src, dst N) bool + Neighbours func(n N) iter.Seq2[N, W] + Order func() uint64 + RemoveEdge func(src, dst N) + Size func() uint64 + type Mapper struct + func NewMapper[N comparable]() *Mapper[N] + func (m *Mapper[N]) Intern(k N) NodeID + func (m *Mapper[N]) Len() int + func (m *Mapper[N]) LoadFrom(entries []MapperEntry[N]) error + func (m *Mapper[N]) Lookup(k N) (NodeID, bool) + func (m *Mapper[N]) MaxNodeID() NodeID + func (m *Mapper[N]) Resolve(id NodeID) (N, bool) + func (m *Mapper[N]) Walk(fn func(NodeID, N) bool) + type MapperEntry struct + ID NodeID + Key N + type NodeID uint64