implemented cached walker

This commit is contained in:
pippellia-btc
2025-06-03 15:35:59 +02:00
parent 7d82354540
commit c7b0d8ff94
7 changed files with 306 additions and 48 deletions

View File

@@ -3,6 +3,7 @@
package graph
import (
"errors"
"time"
)
@@ -17,6 +18,11 @@ const (
Demotion int = -1
)
var (
ErrNodeNotFound = errors.New("node not found")
ErrNodeAlreadyExists = errors.New("node already exists")
)
type ID string
func (id ID) MarshalBinary() ([]byte, error) { return []byte(id), nil }