19 lines
271 B
C++
19 lines
271 B
C++
#ifndef EDGE_H_
|
|
#define EDGE_H_
|
|
|
|
#include "Graph.h"
|
|
|
|
template <typename Te>
|
|
class Edge{
|
|
public:
|
|
Te data;
|
|
double weight = 1;
|
|
Etype type = UNDETERMINED;
|
|
|
|
Edge() = default;
|
|
Edge(Te data) : data(data) {}
|
|
Edge(Te data, double w) : data(data), weight(w) {}
|
|
};
|
|
|
|
#endif
|