visualizations

Programmatic visualizations
git clone git://git.laack.co/visualizations.git
Log | Files | Refs | README

edge.hpp (470B)


      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 identifier;
     10         std::size_t v1Index;
     11         std::size_t v2Index;
     12         double length2;
     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 };