All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
NeighborhoodFunction.h
Go to the documentation of this file.
1 /*
2 * NeighborhoodFunction.h
3 *
4 * Created on: 30.03.2016
5 * Author: Maximilian Vogel
6 */
7 
8 #ifndef NEIGHBORHOODFUNCTION_H_
9 #define NEIGHBORHOODFUNCTION_H_
10 
11 #include "../base/Algorithm.h"
12 #include "../graph/Graph.h"
13 
14 namespace NetworKit {
15 
20 
21 public:
30  NeighborhoodFunction(const Graph& G);
31 
32  void run() override;
33 
38  std::vector<count> getNeighborhoodFunction() const;
39 
40 private:
41  const Graph& G;
42  std::vector<count> result;
43 };
44 
45 } /* namespace NetworKit */
46 
47 #endif /* NEIGHBORHOODFUNCTION_H_ */
std::vector< count > getNeighborhoodFunction() const
Returns the neighborhood function of the graph.
Definition: NeighborhoodFunction.cpp:54
void run() override
The generic run method which calls runImpl() and takes care of setting to the appropriate value...
Definition: NeighborhoodFunction.cpp:27
NeighborhoodFunction(const Graph &G)
Computes the neighborhood function exactly.
Definition: NeighborhoodFunction.cpp:20
Definition: NeighborhoodFunction.h:19
Definition: Algorithm.h:9
A graph (with optional weights) and parallel iterator methods.
Definition: Graph.h:79