Versions in this module Expand all Collapse all v0 v0.1.0 Apr 5, 2026 Changes in this version + type Direction int + const Both + const In + const Out + type Edge struct + From NodeID + ID EdgeID + Properties map[string]any + To NodeID + Type uint16 + type EdgeID uint32 + type Graph struct + func New(s *schema.Schema) *Graph + func (g *Graph) CreateEdge(edgeType string, from, to NodeID, props map[string]any) (EdgeID, error) + func (g *Graph) CreateNode(label, key string, props map[string]any) (NodeID, error) + func (g *Graph) DeleteEdge(id EdgeID) error + func (g *Graph) DeleteNode(id NodeID) error + func (g *Graph) EdgeCount() int + func (g *Graph) EdgeTypeName(id uint16) string + func (g *Graph) EdgesByType(edgeType string) []EdgeID + func (g *Graph) GetEdge(id EdgeID) *Edge + func (g *Graph) GetNode(id NodeID) *Node + func (g *Graph) GetNodeByKey(key string) (*Node, bool) + func (g *Graph) LabelName(id uint16) string + func (g *Graph) Neighbors(id NodeID, edgeType string, dir Direction) []NodeID + func (g *Graph) NodeCount() int + func (g *Graph) NodesByLabel(label string) []NodeID + func (g *Graph) Schema() *schema.Schema + func (g *Graph) SetProperty(id NodeID, key string, value any) error + func (g *Graph) ShortestPath(from, to NodeID) []NodeID + func (g *Graph) Traverse(start NodeID, edgeType string, dir Direction, minHops, maxHops int) []NodeID + type Node struct + ID NodeID + Key string + Label uint16 + Properties map[string]any + type NodeID uint32