Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/arafatkatze/DataViz
/ functions
Functions
773 in github.com/arafatkatze/DataViz
⨍
Functions
773
◇
Types & classes
47
↓ 461 callers
Method
Put
(key interface{}, value interface{})
maps/maps.go:18
↓ 175 callers
Function
assertValidTreeNode
(t *testing.T, node *Node, expectedEntries int, expectedChildren int, keys []int, hasParent bool)
trees/btree/btree_test.go:1056
↓ 128 callers
Method
Add
(values ...interface{})
lists/lists.go:21
↓ 113 callers
Method
Size
()
containers/containers.go:17
↓ 104 callers
Method
Next
Next moves the iterator to the next element and returns true if there was a next element in the container. If Next() returns true, then next element's
containers/iterator.go:35
↓ 92 callers
Method
Value
Value returns the current element's value. Does not modify the state of the iterator.
containers/iterator.go:39
↓ 75 callers
Method
Push
(value interface{})
stacks/stacks.go:12
↓ 68 callers
Method
Key
Key returns the current element's key. Does not modify the state of the iterator.
containers/iterator.go:43
↓ 65 callers
Method
Remove
(key interface{})
maps/maps.go:20
↓ 63 callers
Function
assertValidTree
(t *testing.T, tree *Tree, expectedSize int)
trees/btree/btree_test.go:1050
↓ 60 callers
Method
Index
Index returns the current element's index. Does not modify the state of the iterator.
containers/iterator.go:17
↓ 54 callers
Method
Get
(index int)
lists/lists.go:19
↓ 47 callers
Function
NewWithIntComparator
NewWithIntComparator instantiates a B-tree with the order (maximum number of children) and the IntComparator, i.e. keys are of type int.
trees/btree/btree.go:62
↓ 38 callers
Function
New
New instantiates a new empty list
lists/doublylinkedlist/doublylinkedlist.go:34
↓ 38 callers
Function
New
New instantiates a new empty list
lists/arraylist/arraylist.go:32
↓ 38 callers
Method
Values
()
containers/containers.go:19
↓ 37 callers
Method
Get
(key interface{})
maps/maps.go:19
↓ 34 callers
Function
New
New instantiates a new empty list
lists/singlylinkedlist/singlylinkedlist.go:32
↓ 33 callers
Method
Prev
Prev moves the iterator to the previous element and returns true if there was a previous element in the container. If Prev() returns true, then previo
containers/iterator.go:93
↓ 30 callers
Function
NewWithIntComparator
NewWithIntComparator instantiates an AVL tree with the IntComparator, i.e. keys are of type int.
trees/avltree/avltree.go:42
↓ 30 callers
Function
NewWithIntComparator
NewWithIntComparator instantiates a red-black tree with the IntComparator, i.e. keys are of type int.
trees/redblacktree/redblacktree.go:52
↓ 23 callers
Method
Empty
()
containers/containers.go:16
↓ 21 callers
Function
nodeColor
(node *Node)
trees/redblacktree/redblacktree.go:570
↓ 19 callers
Method
Begin
Begin resets the iterator to its initial state (one-before-first) Call Next() to fetch the first element if any.
containers/iterator.go:47
↓ 19 callers
Method
Iterator
Iterator returns a stateful iterator whose elements are key/value pairs.
trees/avltree/iterator.go:24
↓ 19 callers
Method
Iterator
Iterator returns a stateful iterator whose elements are key/value pairs.
trees/btree/iterator.go:24
↓ 19 callers
Method
Iterator
Iterator returns a stateful iterator whose elements are key/value pairs.
trees/redblacktree/iterator.go:23
↓ 19 callers
Function
New
New instantiates a new empty stack
stacks/arraystack/arraystack.go:28
↓ 19 callers
Function
NewWithIntComparator
NewWithIntComparator instantiates a new empty heap with the IntComparator, i.e. elements are of type int.
trees/binaryheap/binaryheap.go:36
↓ 18 callers
Function
NewWithIntComparator
NewWithIntComparator instantiates a tree map with the IntComparator, i.e. keys are of type int.
maps/treemap/treemap.go:34
↓ 18 callers
Method
Remove
(index int)
lists/lists.go:20
↓ 17 callers
Method
Iterator
Iterator returns a stateful iterator whose elements are key/value pairs.
maps/treemap/iterator.go:18
↓ 16 callers
Method
End
End moves the iterator past the last element (one-past-the-end). Call Prev() to fetch the last element if any.
containers/iterator.go:97
↓ 15 callers
Method
Contains
(values ...interface{})
lists/lists.go:22
↓ 15 callers
Method
First
First moves the iterator to the first element and returns true if there was a first element in the container. If First() returns true, then first elem
containers/iterator.go:52
↓ 15 callers
Method
Keys
()
maps/maps.go:21
↓ 15 callers
Function
ToString
ToString converts a value to string.
utils/utils.go:17
↓ 14 callers
Method
Iterator
Iterator returns a stateful iterator whose values can be fetched by an index.
lists/doublylinkedlist/iterator.go:17
↓ 14 callers
Method
Iterator
Iterator returns a stateful iterator whose values can be fetched by an index.
lists/arraylist/iterator.go:16
↓ 13 callers
Method
Last
Last moves the iterator to the last element and returns true if there was a last element in the container. If Last() returns true, then last element's
containers/iterator.go:102
↓ 13 callers
Method
Pop
()
stacks/stacks.go:13
↓ 12 callers
Method
FromJSON
FromJSON populates containers's elements from the input JSON representation.
containers/serialization.go:12
↓ 12 callers
Method
Insert
(index int, values ...interface{})
lists/lists.go:25
↓ 12 callers
Function
NewWithStringComparator
NewWithStringComparator instantiates a tree map with the StringComparator, i.e. keys are of type string.
maps/treemap/treemap.go:39
↓ 12 callers
Method
ToJSON
ToJSON outputs the JSON representation of containers's elements.
containers/serialization.go:6
↓ 12 callers
Method
search
search searches only within the single node among its entries
trees/btree/btree.go:341
↓ 11 callers
Method
Sort
(comparator utils.Comparator)
lists/lists.go:23
↓ 10 callers
Method
Iterator
Iterator returns a stateful iterator whose values can be fetched by an index.
lists/singlylinkedlist/iterator.go:21
↓ 9 callers
Method
Clear
()
containers/containers.go:18
↓ 9 callers
Method
Height
Height returns the height of the tree.
trees/btree/btree.go:222
↓ 9 callers
Method
isLeaf
(node *Node)
trees/btree/btree.go:308
↓ 8 callers
Method
All
All passes each element of the container to the given function and returns true if the function returns true for all elements.
containers/enumerable.go:51
↓ 8 callers
Method
Any
Map invokes the given function once for each element and returns a container containing the values returned by the given function as key/value pairs.
containers/enumerable.go:47
↓ 8 callers
Method
Find
Find passes each element of the container to the given function and returns the first (key,value) for which the function is true or nil,nil otherwise
containers/enumerable.go:56
↓ 8 callers
Method
withinRange
Check that the index is within bounds of the list
lists/doublylinkedlist/doublylinkedlist.go:324
↓ 7 callers
Method
Iterator
Iterator returns a stateful iterator whose values can be fetched by an index.
trees/binaryheap/iterator.go:16
↓ 7 callers
Method
Iterator
Iterator returns a stateful iterator whose values can be fetched by an index.
stacks/arraystack/iterator.go:16
↓ 7 callers
Method
Peek
()
stacks/stacks.go:14
↓ 7 callers
Method
withinRange
Check that the index is within bounds of the list
lists/arraylist/arraylist.go:180
↓ 6 callers
Method
Add
Add appends a value (one or more) at the end of the list (same as Append())
lists/doublylinkedlist/doublylinkedlist.go:39
↓ 6 callers
Method
Add
Add appends a value (one or more) at the end of the list (same as Append())
lists/singlylinkedlist/singlylinkedlist.go:37
↓ 6 callers
Method
Swap
(index1, index2 int)
lists/lists.go:24
↓ 6 callers
Method
deleteEntry
(node *Node, index int)
trees/btree/btree.go:641
↓ 6 callers
Function
setParent
(nodes []*Node, parent *Node)
trees/btree/btree.go:478
↓ 6 callers
Method
sibling
()
trees/redblacktree/redblacktree.go:383
↓ 6 callers
Method
withinRange
Check that the index is within bounds of the list
lists/singlylinkedlist/singlylinkedlist.go:271
↓ 5 callers
Method
Left
Left returns the left-most (min) node or nil if tree is empty.
trees/btree/btree.go:227
↓ 5 callers
Method
Right
Right returns the right-most (max) node or nil if tree is empty.
trees/btree/btree.go:248
↓ 5 callers
Function
Sort
Sort sorts values (in-place) with respect to the given comparator. Uses Go's sort (hybrid of quicksort for large and then insertion sort for smaller
utils/sort.go:12
↓ 5 callers
Method
rotateLeft
(node *Node)
trees/redblacktree/redblacktree.go:393
↓ 5 callers
Method
rotateRight
(node *Node)
trees/redblacktree/redblacktree.go:404
↓ 4 callers
Method
Each
Each calls the given function once for each element, passing that element's key and value.
containers/enumerable.go:34
↓ 4 callers
Method
Empty
Empty returns true if tree does not contain any nodes
trees/btree/btree.go:110
↓ 4 callers
Method
IndexOf
IndexOf returns index of provided element
lists/doublylinkedlist/doublylinkedlist.go:174
↓ 4 callers
Method
IndexOf
IndexOf returns index of provided element
lists/arraylist/arraylist.go:99
↓ 4 callers
Method
IndexOf
IndexOf returns index of provided element
lists/singlylinkedlist/singlylinkedlist.go:154
↓ 4 callers
Method
Left
Left returns the minimum element of the AVL tree or nil if the tree is empty.
trees/avltree/avltree.go:114
↓ 4 callers
Method
Left
Left returns the left-most (min) node or nil if tree is empty.
trees/redblacktree/redblacktree.go:176
↓ 4 callers
Method
Right
Right returns the maximum element of the AVL tree or nil if the tree is empty.
trees/avltree/avltree.go:120
↓ 4 callers
Method
Right
Right returns the right-most (max) node or nil if tree is empty.
trees/redblacktree/redblacktree.go:187
↓ 4 callers
Function
benchmarkAdd
(b *testing.B, list *List, size int)
lists/doublylinkedlist/doublylinkedlist_test.go:486
↓ 4 callers
Function
benchmarkAdd
(b *testing.B, list *List, size int)
lists/arraylist/arraylist_test.go:487
↓ 4 callers
Function
benchmarkAdd
(b *testing.B, list *List, size int)
lists/singlylinkedlist/singlylinkedlist_test.go:409
↓ 4 callers
Function
benchmarkGet
(b *testing.B, m *Map, size int)
maps/treemap/treemap_test.go:470
↓ 4 callers
Function
benchmarkGet
(b *testing.B, tree *Tree, size int)
trees/avltree/avltree_test.go:587
↓ 4 callers
Function
benchmarkGet
(b *testing.B, tree *Tree, size int)
trees/btree/btree_test.go:1104
↓ 4 callers
Function
benchmarkGet
(b *testing.B, tree *Tree, size int)
trees/redblacktree/redblacktree_test.go:587
↓ 4 callers
Function
benchmarkGet
(b *testing.B, list *List, size int)
lists/doublylinkedlist/doublylinkedlist_test.go:478
↓ 4 callers
Function
benchmarkGet
(b *testing.B, list *List, size int)
lists/arraylist/arraylist_test.go:479
↓ 4 callers
Function
benchmarkGet
(b *testing.B, list *List, size int)
lists/singlylinkedlist/singlylinkedlist_test.go:401
↓ 4 callers
Function
benchmarkPop
(b *testing.B, heap *Heap, size int)
trees/binaryheap/binaryheap_test.go:298
↓ 4 callers
Function
benchmarkPop
(b *testing.B, stack *Stack, size int)
stacks/arraystack/arraystack_test.go:267
↓ 4 callers
Function
benchmarkPush
(b *testing.B, heap *Heap, size int)
trees/binaryheap/binaryheap_test.go:290
↓ 4 callers
Function
benchmarkPush
(b *testing.B, stack *Stack, size int)
stacks/arraystack/arraystack_test.go:259
↓ 4 callers
Function
benchmarkPut
(b *testing.B, m *Map, size int)
maps/treemap/treemap_test.go:478
↓ 4 callers
Function
benchmarkPut
(b *testing.B, tree *Tree, size int)
trees/avltree/avltree_test.go:595
↓ 4 callers
Function
benchmarkPut
(b *testing.B, tree *Tree, size int)
trees/btree/btree_test.go:1112
↓ 4 callers
Function
benchmarkPut
(b *testing.B, tree *Tree, size int)
trees/redblacktree/redblacktree_test.go:595
↓ 4 callers
Function
benchmarkRemove
(b *testing.B, m *Map, size int)
maps/treemap/treemap_test.go:486
↓ 4 callers
Function
benchmarkRemove
(b *testing.B, tree *Tree, size int)
trees/avltree/avltree_test.go:603
next →
1–100 of 773, ranked by callers