Documentation
¶
Index ¶
- type BinHeap
- type BinHeapNode
- type NTree
- func (t *NTree) Detach(val interface{}) *NTree
- func (t *NTree) Find(val interface{}) *NTree
- func (t *NTree) FindCommonParent(vals ...interface{}) *NTree
- func (t *NTree) FindOrInsert(val interface{}) *NTree
- func (t *NTree) FindParent(val interface{}) *NTree
- func (t *NTree) GetValue() interface{}
- func (t *NTree) PostTraversal() []interface{}
- func (t *NTree) PreTraversal() []interface{}
- type Topology
- type TopologyNode
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BinHeap ¶
type BinHeap struct {
// contains filtered or unexported fields
}
func NewBinHeap ¶
func NewBinHeap() *BinHeap
type BinHeapNode ¶
type BinHeapNode struct {
// contains filtered or unexported fields
}
type NTree ¶
type NTree struct {
// contains filtered or unexported fields
}
func (*NTree) FindCommonParent ¶
func (*NTree) FindOrInsert ¶
func (*NTree) FindParent ¶
func (*NTree) PostTraversal ¶
func (t *NTree) PostTraversal() []interface{}
func (*NTree) PreTraversal ¶
func (t *NTree) PreTraversal() []interface{}
type Topology ¶
type Topology struct {
// contains filtered or unexported fields
}
func NewTopology ¶
func NewTopology(extNodes ...TopologyNode) *Topology
func (*Topology) Sort ¶
func (top *Topology) Sort() ([]TopologyNode, error)
type TopologyNode ¶
type TopologyNode interface {
GetName() string
}
Click to show internal directories.
Click to hide internal directories.