Documentation ¶
Index ¶
- type DebugEvent
- type DebugEventType
- type DebugLog
- type Graph
- func (g *Graph) Add(vertex interface{})
- func (g *Graph) Connect(start, end interface{}) error
- func (g *Graph) Copy() (c Graph, err error)
- func (g *Graph) DebugLogEvents() []DebugEvent
- func (g *Graph) HasEdge(start, end interface{}) bool
- func (g *Graph) HasPathDepthFirst(start, end interface{}) (bool, error)
- func (g *Graph) HasVertex(v interface{}) bool
- func (g *Graph) String() string
- func (g *Graph) VerticesFrom(origin interface{}) (vertices []interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DebugEvent ¶
type DebugEvent struct { Type DebugEventType Detail interface{} }
type DebugEventType ¶
type DebugEventType string
const ( AddEvent DebugEventType = "Add" ConnectEvent DebugEventType = "Connect" )
type DebugLog ¶
type DebugLog struct {
// contains filtered or unexported fields
}
func (*DebugLog) Add ¶
func (l *DebugLog) Add(eventType DebugEventType, detail interface{})
func (*DebugLog) All ¶
func (l *DebugLog) All() []DebugEvent
type Graph ¶
type Graph struct {
// contains filtered or unexported fields
}
Graph wraps dag.AcyclicGraph in order to provide a restricted, smaller API with modified behaviors such as additional error checks and validation.
func (*Graph) DebugLogEvents ¶
func (g *Graph) DebugLogEvents() []DebugEvent
func (*Graph) HasPathDepthFirst ¶
func (*Graph) VerticesFrom ¶
func (g *Graph) VerticesFrom(origin interface{}) (vertices []interface{})
Click to show internal directories.
Click to hide internal directories.