Program Listing for File Globals.hpp

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;

constexpr edgeweight defaultEdgeWeight = 1.0;
constexpr edgeweight nullWeight = 0.0;
constexpr index none = std::numeric_limits<index>::max();

constexpr double PI = 3.141592653589793238462643383279502884197169399375105820974944592307816406286;

} // namespace NetworKit

#endif // NETWORKIT_GLOBALS_HPP_