Documentation ¶
Overview ¶
Package toposort implements a topological sorting library for Go.
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Edges ¶
type Edges map[string]EdgesFromNode
Edges represents the set of all Edges in a topology grouped by origin node
func (Edges) HasIncoming ¶
HasIncoming returns whether a node has incoming Edges
type EdgesFromNode ¶
EdgesFromNode represents a set of Edges leaving a node
func (EdgesFromNode) Copy ¶
func (ne EdgesFromNode) Copy() EdgesFromNode
Copy returns a copy of EdgesFromNode
type ErrCycleInTopology ¶
func (*ErrCycleInTopology) Error ¶
func (e *ErrCycleInTopology) Error() string
type Node ¶
type Node interface {
Id() string
}
Node is the interface type for a single node in a topology
Click to show internal directories.
Click to hide internal directories.