Documentation
¶
Index ¶
- func GraphSeparators[K comparable](inputs []K, edges func(K) []K) ([]K, [][]K)
- func SeparatorsTest()
- func StronglyConnectedComponents[K comparable](inputs []K, edges func(K) []K) [][]K
- func StronglyConnectedTest()
- type PriorityQueueT
- type SExpKindT
- type SExpT
- type SetT
- func (set SetT[E]) Add(members ...E)
- func (set SetT[E]) AddSet(other SetT[E])
- func (set SetT[E]) Contains(member E) bool
- func (set SetT[E]) Difference(other SetT[E]) SetT[E]
- func (set SetT[E]) Intersection(other SetT[E]) SetT[E]
- func (set SetT[E]) Members() []E
- func (set SetT[E]) Pop() E
- func (set SetT[E]) Remove(member E)
- func (set SetT[E]) RemoveSet(other SetT[E])
- func (set SetT[E]) Union(other SetT[E]) SetT[E]
- type StackT
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GraphSeparators ¶
func GraphSeparators[K comparable](inputs []K, edges func(K) []K) ([]K, [][]K)
func SeparatorsTest ¶
func SeparatorsTest()
func StronglyConnectedComponents ¶
func StronglyConnectedComponents[K comparable](inputs []K, edges func(K) []K) [][]K
func StronglyConnectedTest ¶
func StronglyConnectedTest()
Types ¶
type PriorityQueueT ¶ added in v0.1.10
type PriorityQueueT[T comparable] struct { // contains filtered or unexported fields }
func MakePriorityQueue ¶ added in v0.1.10
func MakePriorityQueue[T comparable](less func(x T, y T) bool) *PriorityQueueT[T]
func (*PriorityQueueT[T]) Dequeue ¶ added in v0.1.10
func (pq *PriorityQueueT[T]) Dequeue() T
func (*PriorityQueueT[T]) Empty ¶ added in v0.1.10
func (pq *PriorityQueueT[T]) Empty() bool
func (*PriorityQueueT[T]) Enqueue ¶ added in v0.1.10
func (pq *PriorityQueueT[T]) Enqueue(x T)
func (*PriorityQueueT[T]) Len ¶ added in v0.1.10
func (pq *PriorityQueueT[T]) Len() int
func (*PriorityQueueT[T]) Peek ¶ added in v0.1.13
func (pq *PriorityQueueT[T]) Peek() T
func (*PriorityQueueT[T]) Update ¶ added in v0.1.13
func (pq *PriorityQueueT[T]) Update(value T)
type SetT ¶
type SetT[E comparable] map[E]struct{}
func NewSet ¶
func NewSet[E comparable](members ...E) SetT[E]
func (SetT[E]) Difference ¶
func (SetT[E]) Intersection ¶
Click to show internal directories.
Click to hide internal directories.