Documentation ¶
Index ¶
- type DAG
- func (d *DAG) Add(name string, dependants []string) (*Node, error)
- func (d *DAG) Delete(name string)
- func (d *DAG) GetChildren(name string) []string
- func (d *DAG) GetDeepChildren(name string) []string
- func (d *DAG) GetParents(name string) []string
- func (d *DAG) Has(name string) bool
- func (d *DAG) TopologicalSort() []string
- type Node
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DAG ¶
DAG is a simple implementation of a directed acyclic graph.
func (*DAG) GetChildren ¶
GetChildren only returns the immediate children
func (*DAG) GetDeepChildren ¶ added in v0.19.0
GetDeepChildren will go down the DAG and get all children in the subtree
func (*DAG) GetParents ¶ added in v0.19.0
GetParents only returns the immediate parents
func (*DAG) TopologicalSort ¶ added in v0.24.4
Click to show internal directories.
Click to hide internal directories.