Go to the documentation of this file.
16 #ifndef ENGINES_GRAPH_DB_APP_BUILDIN_SHORTEST_PATH_AMONG_THREE_H_
17 #define ENGINES_GRAPH_DB_APP_BUILDIN_SHORTEST_PATH_AMONG_THREE_H_
19 #include "flex/engines/hqps_db/app/interactive_app_base.h"
23 :
public CypherReadAppBase<std::string, std::string, std::string,
24 std::string, std::string, std::string> {
28 std::string label_name1, std::string oid1,
29 std::string label_name2, std::string oid2,
30 std::string label_name3, std::string oid3);
35 std::vector<std::pair<label_t, vid_t>>& result_);
37 const std::vector<std::pair<label_t, vid_t>>& path1,
38 const std::vector<std::pair<label_t, vid_t>>& path2,
39 const std::vector<std::pair<label_t, vid_t>>& path3);
AppWrapper CreateApp(const GraphDB &db) override
Definition: shortest_path_among_three.cc:255
~ShortestPathAmongThreeFactory()=default
uint32_t vid_t
Definition: types.h:31
Definition: shortest_path_among_three.h:42
Definition: adj_list.h:23
ShortestPathAmongThreeFactory()=default
results::CollectiveResults Query(const GraphDBSession &sess, std::string label_name1, std::string oid1, std::string label_name2, std::string oid2, std::string label_name3, std::string oid3)
Definition: shortest_path_among_three.cc:19
Definition: graph_db_session.h:36
Definition: graph_db.h:77
ShortestPathAmongThree()
Definition: shortest_path_among_three.h:26
Definition: read_transaction.h:375
bool ShortestPath(const gs::ReadTransaction &txn, label_t v1_l, vid_t v1_index, label_t v2_l, vid_t v2_index, std::vector< std::pair< label_t, vid_t >> &result_)
Definition: shortest_path_among_three.cc:117
Definition: shortest_path_among_three.h:22
Definition: app_base.h:78
std::vector< std::pair< label_t, vid_t > > ConnectPath(const std::vector< std::pair< label_t, vid_t >> &path1, const std::vector< std::pair< label_t, vid_t >> &path2, const std::vector< std::pair< label_t, vid_t >> &path3)
Definition: shortest_path_among_three.cc:223
uint8_t label_t
Definition: types.h:32
Definition: app_base.h:115