Determine and prepare the sampling function */
| 257 | |
| 258 | /** Determine and prepare the sampling function */ |
| 259 | virtual SampleFunction get_sample_function() { |
| 260 | graph->flatten(); |
| 261 | edge_table.build(graph->edge_weights); |
| 262 | if (naive_parallel) |
| 263 | return &Sampler::naive_sample; |
| 264 | else |
| 265 | return &Sampler::sample; |
| 266 | } |
| 267 | |
| 268 | /** Determine the minimum number of partitions */ |
| 269 | virtual int get_min_partition() const { |