gods: github.com/emirpasic/gods/examples/redblacktreeextended Index | Files

package redblacktreeextended

import "github.com/emirpasic/gods/examples/redblacktreeextended"

Index

Package Files

redblacktreeextended.go

type RedBlackTreeExtended Uses

type RedBlackTreeExtended struct {
    *rbt.Tree
}

RedBlackTreeExtended to demonstrate how to extend a RedBlackTree to include new functions

func (*RedBlackTreeExtended) GetMax Uses

func (tree *RedBlackTreeExtended) GetMax() (value interface{}, found bool)

GetMax gets the max value and flag if found

func (*RedBlackTreeExtended) GetMin Uses

func (tree *RedBlackTreeExtended) GetMin() (value interface{}, found bool)

GetMin gets the min value and flag if found

func (*RedBlackTreeExtended) RemoveMax Uses

func (tree *RedBlackTreeExtended) RemoveMax() (value interface{}, deleted bool)

RemoveMax removes the max value and flag if found

func (*RedBlackTreeExtended) RemoveMin Uses

func (tree *RedBlackTreeExtended) RemoveMin() (value interface{}, deleted bool)

RemoveMin removes the min value and flag if found

Package redblacktreeextended imports 2 packages (graph) and is imported by 3 packages. Updated 2019-02-22. Refresh now. Tools for package owners.