Documentation ¶
Index ¶
- func ItEdges[T comparable](it bt.Iterable[bt.Kv[T, bt.Iterable[T]]]) ctr.Map[T, ctr.Set[T]]
- func SliceEdges[T comparable](m map[T][]T) ctr.Map[T, ctr.Set[T]]
- func TraverseLinks[T comparable](data ctr.Map[T, ctr.Set[T]], keys bt.Iterable[T]) ctr.Set[T]
- type Dag
- type DuplicateNodeError
- type NodeError
- type Subdag
- type Tree
- func (t Tree[T]) ChildSetsByNode() ctr.Map[bt.Optional[T], ctr.Set[T]]
- func (t Tree[T]) ChildrenByNode() ctr.Map[bt.Optional[T], ctr.List[T]]
- func (t *Tree[T]) DepthsByNode() ctr.Map[T, int]
- func (t Tree[T]) NodeSet() ctr.Set[T]
- func (t *Tree[T]) NodeSetsByType() map[reflect.Type]ctr.Set[T]
- func (t Tree[T]) Nodes() ctr.List[T]
- func (t Tree[T]) ParentsByNode() ctr.Map[bt.Optional[T], bt.Optional[T]]
- func (t Tree[T]) Root() T
- func (t Tree[T]) Walk() func(T) bt.Iterable[T]
- type UnknownNodeError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SliceEdges ¶
func SliceEdges[T comparable](m map[T][]T) ctr.Map[T, ctr.Set[T]]
Types ¶
type Dag ¶
type Dag[T comparable] struct { // contains filtered or unexported fields }
type DuplicateNodeError ¶
func (DuplicateNodeError[T]) Error ¶
func (e DuplicateNodeError[T]) Error() string
type Subdag ¶
type Subdag[T comparable] struct { // contains filtered or unexported fields }
func (*Subdag[T]) OutputInputs ¶
type Tree ¶
type Tree[T any] struct { // contains filtered or unexported fields }
func (Tree[T]) ChildSetsByNode ¶
func (Tree[T]) ChildrenByNode ¶
func (Tree[T]) ParentsByNode ¶
type UnknownNodeError ¶
func (UnknownNodeError[T]) Error ¶
func (e UnknownNodeError[T]) Error() string
Click to show internal directories.
Click to hide internal directories.