IBM SYSTEMG G RUNTIME & NATIVE STORE
0.5
IBM Native Graph Computing and Storage System based on IBM Parallel Programming Library
|
compute the closeness centrality at the vertex level More...
#include <plugin_closeness_centrality.h>
Inherits analytic_engine_base, and query_base.
Public Member Functions | |
REGISTER_QUERY_TYPE (analytic_engine_closeness_centrality) | |
int | run (struct query_param_type) |
void | options (command_options &opts) |
Private Member Functions | |
float | compute (struct query_param_type param, string vertex_label, vertex_id_type vertex_id) |
compute the closeness centrality at the vertex level
int analytic_engine_closeness_centrality::run | ( | struct query_param_type | ) |
–vertex | (optional) vertex ID |
–in | (optional) use the cached result of a previous query as input (if it contains both vertices and edges, the computation will be restricted to the induced sub-graph; if it contains vertices only, the computation will be restricted to these vertices in the whole graph (unless '–id' is used, in which case the computation is only for the specified vertex) |
–ignoreedgeweight | (optional) ignore edge weight when computing shortest paths |