visualizations

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

edge.hpp (416B)


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