All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Sampling.h
Go to the documentation of this file.
1 /*
2  * Sampling.h
3  *
4  * Created on: 17.02.2014
5  * Author: cls
6  */
7 
8 #ifndef SAMPLING_H_
9 #define SAMPLING_H_
10 
11  #include "Graph.h"
12 
13 namespace NetworKit {
14 
18 class Sampling {
19 
20 public:
21 
22  static node randomNode(const Graph& G);
23 
24  static std::pair<node, node> randomEdge(const Graph& G);
25 
26  static node randomNeighbor(const Graph& G, node u);
27 
28 };
29 
30 } /* namespace NetworKit */
31 
32 #endif /* SAMPLING_H_ */
Definition: Sampling.h:18
static std::pair< node, node > randomEdge(const Graph &G)
static node randomNode(const Graph &G)
Definition: Sampling.cpp:13
index node
Definition: Globals.h:23
A graph (with optional weights) and parallel iterator methods.
Definition: Graph.h:79
static node randomNeighbor(const Graph &G, node u)