↰ Return to documentation for file (include/networkit/Globals.hpp)
/*
* Globals.hpp
*
* Created on: 06.02.2013
* Author: Christian Staudt (christian.staudt@kit.edu)
*/
#ifndef NETWORKIT_GLOBALS_HPP_
#define NETWORKIT_GLOBALS_HPP_
#include <cstdint>
#include <limits>
#include <utility>
namespace NetworKit {
using index = uint64_t;
#ifdef _MSC_VER
using omp_index = int64_t;
#else
using omp_index = index;
#endif // _MSC_VER
using coordinate = double;
using count = uint64_t;
using node = index;
using edgeweight = double;
using edgeid = index;
inline constexpr edgeweight defaultEdgeWeight = 1.0;
inline constexpr edgeweight nullWeight = 0.0;
inline constexpr index none =
std::numeric_limits<index>::max();
inline constexpr double PI =
3.141592653589793238462643383279502884197169399375105820974944592307816406286;
template <class NodeT>
inline constexpr NodeT NullNodeId = std::numeric_limits<NodeT>::max();
inline constexpr edgeid nullEdgeId = std::numeric_limits<edgeid>::max();
enum class Visit : uint8_t { Unvisited = 0, Visited = 1 };
} // namespace NetworKit
#endif // NETWORKIT_GLOBALS_HPP_