Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Graph ¶
type Graph[T Node] struct { // contains filtered or unexported fields }
Graph is a directed, cyclic, unweighted graph.
func (*Graph[T]) InsertGraph ¶
InsertGraph merges other into g.
func (*Graph[T]) InsertTree ¶
func (g *Graph[T]) InsertTree(nodes ...T)
InsertTree inserts nodes of a tree, ordered root first, leaf last.
Click to show internal directories.
Click to hide internal directories.