Program Listing for File GraphConcepts.hpp

↰ Return to documentation for file (include/networkit/graph/GraphConcepts.hpp)

/*  GraphConcepts.hpp
 *
 *  Created on: 05.07.2026
 *  Authors: Andreas Scharf (andreas.b.scharf@gmail.com)
 *
 */

#ifndef NETWORKIT_GRAPH_GRAPH_CONCEPTS_HPP_
#define NETWORKIT_GRAPH_GRAPH_CONCEPTS_HPP_

#include <concepts>

namespace NetworKit {

template <typename T>
concept GraphNode = std::integral<T>;

template <typename T>
concept GraphEdgeWeight = std::integral<T> || std::floating_point<T>;

} // namespace NetworKit

#endif // NETWORKIT_GRAPH_GRAPH_CONCEPTS_HPP_