fibonacci_heap: Create a new 'fibonacci_heap'

Description Usage Arguments Value Examples

View source: R/ds_heap_fibonacci.R

Description

Instantiates a new fibonacci_heap object, i.e. a tree-like data structure satisfying the min-heap property.

Usage

1
fibonacci_heap(key.class = c("character", "numeric", "integer"))

Arguments

key.class

the primitive class type of the keys

Value

returns a new fibonacci_heap object

Examples

1
2
3
4
5
6
7
8
 # creates a fibonacci_heap<character, SEXP>
 f_heap <- fibonacci_heap()

 # creates a fibonacci_heap<numeric, SEXP>
 f_heap <- fibonacci_heap("numeric")

 # creates a fibonacci_heap<character, SEXP>
 f_heap <- fibonacci_heap("character")

datastructures documentation built on Aug. 10, 2020, 5:08 p.m.