Flex  0.17.9
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
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_
19 #include "flex/engines/hqps_db/app/interactive_app_base.h"
20 
21 namespace gs {
22 class PageRank
23  : public CypherReadAppBase<std::string, std::string, double, int, double> {
24  public:
25  PageRank() {}
26  results::CollectiveResults Query(const GraphDBSession& sess,
27  std::string vertex_label,
28  std::string edge_label,
29  double damping_factor, int max_iterations,
30  double epsilon);
31 };
32 
34  public:
35  PageRankFactory() = default;
36  ~PageRankFactory() = default;
37 
38  AppWrapper CreateApp(const GraphDB& db) override;
39 };
40 
41 } // namespace gs
42 
43 #endif
gs::PageRankFactory::CreateApp
AppWrapper CreateApp(const GraphDB &db) override
Definition: pagerank.cc:138
gs::PageRank::Query
results::CollectiveResults Query(const GraphDBSession &sess, std::string vertex_label, std::string edge_label, double damping_factor, int max_iterations, double epsilon)
Definition: pagerank.cc:19
graph_db_session.h
gs::PageRank
Definition: pagerank.h:22
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:70
gs::PageRank::PageRank
PageRank()
Definition: pagerank.h:25
gs::PageRankFactory::PageRankFactory
PageRankFactory()=default
gs::AppWrapper
Definition: app_base.h:78
gs::PageRankFactory
Definition: pagerank.h:33
gs::AppFactoryBase
Definition: app_base.h:115