RcppXPtrUtils.Compile preference functions via RcppXPtrUtils.
compile_pref_func(preference, directed)Returns the input list and their corresponding external pointers.
A list for defining the preference functions.
Logical, whether to compile the preference functions for directed networks. If missing, the preference functions for both directed and undirected networks will be compiled.