MCPcopy Create free account
hub / github.com/DeepGraphLearning/graphvite / get_sample_function

Method get_sample_function

include/core/solver.h:259–266  ·  view source on GitHub ↗

Determine and prepare the sampling function */

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls 2

flattenMethod · 0.80
buildMethod · 0.45

Tested by

no test coverage detected