Documentation
¶
Overview ¶
Package graph contains small reusable graph primitives used by Boxy domain models that need explicit dependency traversal.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DAG ¶
type DAG[N comparable] struct { // contains filtered or unexported fields }
DAG is a directed acyclic graph with generic node identifiers.
func New ¶
func New[N comparable]() *DAG[N]
func (*DAG[N]) AddEdge ¶
AddEdge adds parent -> child and rejects an edge that would create a cycle.
Click to show internal directories.
Click to hide internal directories.