Versions in this module Expand all Collapse all v0 v0.1.0 Dec 6, 2015 Changes in this version + type DAG struct + Adjacency map[*Vertex]*list.List + Root *Vertex + func NewDAG(v interface{}) *DAG + func (g *DAG) Add(v interface{}) *Vertex + func (g *DAG) AddEdge(to, from *Vertex) error + func (g *DAG) BFS(fn WalkFunc) error + func (g *DAG) DFS(fn WalkFunc) error + func (g *DAG) Edges(v *Vertex) []*Vertex + func (g *DAG) Get(v interface{}) (*Vertex, bool) + func (g *DAG) ReverseDFS(fn WalkFunc) error + type Vertex struct + Value interface{} + type WalkFunc func(*Vertex) error