Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Graph ¶
type Graph[T comparable] struct { // contains filtered or unexported fields }
Graph represents a directed acyclic graph using adjacency list
func (*Graph[T]) AddEdge ¶
func (g *Graph[T]) AddEdge(from, to T)
AddEdge adds a directed edge from u to v
Click to show internal directories.
Click to hide internal directories.