Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DAG ¶
type DAG struct {
// contains filtered or unexported fields
}
DAG represents a directected acyclic graph
func (*DAG) Ancestors ¶
Ancestors returns a slice containing all ancestors of a node, 'id', in d which are a descendant of at least one of the nodes in 'from'.
func (*DAG) Descendants ¶
Descendants returns a slice containing all descendants of a node, 'id', in d which are an ancestor of at least one of the nodes in 'to'.
Click to show internal directories.
Click to hide internal directories.