Documentation ¶
Index ¶
- func ErrState(v interface{}) error
- func Slice[T any](s []T, l int) ([]T, bool)
- type BitSet
- type VHeap
- func (h *VHeap[W]) AddNotVertex(v int)
- func (h *VHeap[W]) AddVertex(v int, w W)
- func (h *VHeap[W]) Has(v int) bool
- func (h *VHeap[W]) Len() int
- func (h *VHeap[W]) Less(i, j int) bool
- func (h *VHeap[W]) Peek(v int) W
- func (h *VHeap[W]) Pop() interface{}
- func (h *VHeap[W]) PopVertex() (v int, w W)
- func (h *VHeap[W]) Push(x interface{})
- func (h *VHeap[W]) PushVertex(v int, w W)
- func (h *VHeap[W]) Set(v int, w W)
- func (h *VHeap[W]) Swap(i, j int)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type VHeap ¶
type VHeap[W constraints.Ordered] struct { // contains filtered or unexported fields }
func (*VHeap[W]) AddNotVertex ¶
func (*VHeap[W]) PushVertex ¶
Click to show internal directories.
Click to hide internal directories.