Documentation ¶
Overview ¶
Package graph contains a simple graph data structure. It contains a topological sorting function for ordering nodes in a DAG.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Graph ¶
type Graph struct {
// contains filtered or unexported fields
}
func (*Graph) IncomingNodesTo ¶
IncomingNodesTo returns all nodes that have an edge leading to n.
func (*Graph) OutgoingNodesFrom ¶
OutgoingNodesFrom returns all nodes that have an edge leading from n.
Click to show internal directories.
Click to hide internal directories.