edge.hpp (406B)
1 #pragma once 2 3 #include <string> 4 5 class Edge { 6 public: 7 // indices of v1 and v2 8 Edge(std::size_t v1, std::size_t v2, double length2, std::size_t identifier); 9 std::size_t v1Index; 10 std::size_t v2Index; 11 double length2; 12 std::size_t identifier; 13 bool traversed = false; 14 std::string toString() const noexcept; 15 bool operator<(const Edge &other) const; 16 bool operator>(const Edge &other) const; 17 };