Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DAG ¶
type DAG[Node comparable] struct { // contains filtered or unexported fields }
A DAG is a directed acyclic graph.
func (*DAG[Node]) AddNodes ¶ added in v0.29.0
func (d *DAG[Node]) AddNodes(ns ...Node)
AddNodes adds a new node to the DAG.
func (*DAG[Node]) From ¶
func (d *DAG[Node]) From(n Node) []Node
From returns the nodes that the given node points to.
func (*DAG[Node]) VisitBreadthFirst ¶ added in v0.29.0
Click to show internal directories.
Click to hide internal directories.