Flex  0.17.9
pagerank.h
Go to the documentation of this file.
1 
16 #ifndef ENGINES_GRAPH_DB_APP_BUILDIN_PAGERANK_H_
17 #define ENGINES_GRAPH_DB_APP_BUILDIN_PAGERANK_H_
18 
20 #include "flex/engines/hqps_db/app/interactive_app_base.h"
21 
22 namespace gs {
23 class PageRank : public CypherReadAppBase<std::string, std::string, std::string,
24  double, int32_t, double, int32_t> {
25  public:
26  PageRank() {}
27  results::CollectiveResults Query(const GraphDBSession& sess,
28  std::string src_vertex_label,
29  std::string dst_vertex_label,
30  std::string edge_label,
31  double damping_factor,
32  int32_t max_iterations, double epsilon,
33  int32_t result_limit) override;
34 };
35 
37  public:
38  PageRankFactory() = default;
39  ~PageRankFactory() = default;
40 
41  AppWrapper CreateApp(const GraphDB& db) override;
42 };
43 
44 } // namespace gs
45 
46 #endif
gs::PageRankFactory::CreateApp
AppWrapper CreateApp(const GraphDB &db) override
Definition: pagerank.cc:225
graph_db_session.h
gs::PageRank
Definition: pagerank.h:23
gs
Definition: adj_list.h:23
gs::PageRankFactory::~PageRankFactory
~PageRankFactory()=default
gs::GraphDBSession
Definition: graph_db_session.h:36
gs::GraphDB
Definition: graph_db.h:77
gs::PageRank::Query
results::CollectiveResults Query(const GraphDBSession &sess, std::string src_vertex_label, std::string dst_vertex_label, std::string edge_label, double damping_factor, int32_t max_iterations, double epsilon, int32_t result_limit) override
Definition: pagerank.cc:49
gs::PageRank::PageRank
PageRank()
Definition: pagerank.h:26
gs::PageRankFactory::PageRankFactory
PageRankFactory()=default
gs::AppWrapper
Definition: app_base.h:78
gs::PageRankFactory
Definition: pagerank.h:36
gs::AppFactoryBase
Definition: app_base.h:115