Learn R Programming

datastructures (version 0.2.9)

fibonacci_heap: Create a new fibonacci_heap

Description

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

Usage

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

Run this code
# NOT RUN {
 # 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")

# }

Run the code above in your browser using DataLab