Versions in this module Expand all Collapse all v1 v1.0.46 Apr 12, 2018 Changes in this version + var ErrParallelEdge = errors.New("parallel edges are not permitted") + var ErrSelfLoop = errors.New("self loops not permitted") + var ErrVertexNotFound = errors.New("vertex not found") + type SimpleGraph struct + func NewSimpleGraph() *SimpleGraph + func (g *SimpleGraph) AddEdge(v, w interface{}) error + func (g *SimpleGraph) Adj(v interface{}) ([]interface{}, error) + func (g *SimpleGraph) Degree(v interface{}) (int, error) + func (g *SimpleGraph) E() int + func (g *SimpleGraph) V() int