Versions in this module Expand all Collapse all v0 v0.1.12 Nov 5, 2024 v0.1.11 Nov 3, 2024 Changes in this version + type DoFn func(node N, info Info) error + type Info interface + type InfoFn func(node N) (Info, error) + type NextFn func(node N, info Info) ([]Pair[N], error) + type Node interface + IsNil func() bool + type Pair struct + func NewPair[N Node](node N, info Info, is_critical bool) Pair[N] + type TravFn func(root N) error + type Traversor struct + func NewTraversor[N Node](do DoFn[N], next NextFn[N]) Traversor[N] + func (trav Traversor[N]) BFS() TravFn[N] + func (trav Traversor[N]) BFSWithInfo(new_info InfoFn[N]) TravFn[N] + func (trav Traversor[N]) CFS() TravFn[N] + func (trav Traversor[N]) CFSWithInfo(new_info InfoFn[N]) TravFn[N] + func (trav Traversor[N]) DFS() TravFn[N] + func (trav Traversor[N]) DFSWithInfo(new_info InfoFn[N]) TravFn[N]