Versions in this module Expand all Collapse all v0 v0.1.1 Apr 19, 2026 v0.1.0 Apr 19, 2026 Changes in this version + type Graph struct + func NewGraph[T comparable]() *Graph[T] + func (g *Graph[T]) AddEdge(from, to string) error + func (g *Graph[T]) AddNode(id string, data T) error + func (g *Graph[T]) AddNodes(nodes map[string]T) error + func (g *Graph[T]) EdgeCount() int + func (g *Graph[T]) GetChildren(id string) []string + func (g *Graph[T]) GetNode(id string) (T, bool) + func (g *Graph[T]) GetNodes() map[string]T + func (g *Graph[T]) GetParents(id string) []string + func (g *Graph[T]) HasCircularDependency() bool + func (g *Graph[T]) HasEdge(from, to string) bool + func (g *Graph[T]) HasNode(id string) bool + func (g *Graph[T]) IsEmpty() bool + func (g *Graph[T]) NodeCount() int + func (g *Graph[T]) RemoveChildren(id string) error + func (g *Graph[T]) RemoveEdge(from, to string) error + func (g *Graph[T]) RemoveNode(id string) error + func (g *Graph[T]) RemoveSubGraph(id string) error + func (g *Graph[T]) SetNode(id string, data T) error + func (g *Graph[T]) Sort() ([]T, error) + func (g *Graph[T]) SortNodeIDs() ([]string, error) + func (g *Graph[T]) String() string + func (g *Graph[T]) UpdateNode(id string, data T) error