.to_i()
: integer
Convert ZDD constant object
(weight of empty itemset) to Ruby integer
. Return nil if the weight object is not a ZDD object.
> require 'zdd'
> c=ZDD::constant(10)
> c.show # ZDD constant object
10
> puts c.to_i # ruby integer
10
# Return nil if not ZDD constant object.
> a=ZDD::itemset("a")
> p a.to_i
nil
constant : Create ZDD constant object
to_a : Convert to itemset array