MCPcopy Create free account
hub / github.com/Tencent/embedx / SetGraphConfig

Function SetGraphConfig

src/tools/graph/dist_graph_server_main.cc:23–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21namespace {
22
23void SetGraphConfig(GraphConfig* graph_config) {
24 graph_config->set_ip_ports(FLAGS_gs_addrs);
25 graph_config->set_shard_num(FLAGS_gs_shard_num);
26 graph_config->set_shard_id(FLAGS_gs_shard_id);
27 graph_config->set_thread_num(FLAGS_gs_thread_num);
28
29 graph_config->set_node_graph(FLAGS_node_graph);
30 graph_config->set_node_config(FLAGS_node_config);
31 graph_config->set_node_feature(FLAGS_node_feature);
32 graph_config->set_neighbor_feature(FLAGS_neighbor_feature);
33
34 graph_config->set_negative_sampler_type(FLAGS_negative_sampler_type);
35 graph_config->set_neighbor_sampler_type(FLAGS_neighbor_sampler_type);
36 graph_config->set_random_walker_type(FLAGS_random_walker_type);
37
38 graph_config->set_cache_thld(FLAGS_cache_thld);
39 graph_config->set_cache_type(FLAGS_cache_type);
40 graph_config->set_max_node_per_rpc(FLAGS_max_node_per_rpc);
41
42 graph_config->set_success_out(FLAGS_success_out);
43}
44
45/************************************************************************/
46/* main */

Callers 1

mainFunction · 0.85

Calls 15

set_ip_portsMethod · 0.80
set_shard_numMethod · 0.80
set_shard_idMethod · 0.80
set_node_graphMethod · 0.80
set_node_featureMethod · 0.80
set_neighbor_featureMethod · 0.80
set_cache_thldMethod · 0.80
set_cache_typeMethod · 0.80
set_max_node_per_rpcMethod · 0.80
set_success_outMethod · 0.80

Tested by

no test coverage detected