| 21 | namespace { |
| 22 | |
| 23 | void 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 */ |
no test coverage detected