Documentation ¶
Index ¶
- type DAG
- type Vertex
- func (v *Vertex) AddChild(children ...interface{})
- func (v Vertex) Children() []interface{}
- func (v *Vertex) DelChild(children ...interface{})
- func (v Vertex) HasChild(item interface{}) bool
- func (v Vertex) HasParent(item interface{}) bool
- func (v Vertex) ID() interface{}
- func (v Vertex) Parents() []interface{}
- func (v *Vertex) SetValue(value interface{})
- func (v Vertex) String() string
- func (v Vertex) Value() interface{}
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Vertex ¶
type Vertex struct {
// contains filtered or unexported fields
}
func NewVertex ¶
NewVertex create vertex, id, value and parents must be set and is immutable parents cloud be Vertex or just key
Click to show internal directories.
Click to hide internal directories.