36 Edge(std::string neighbour_vertex) {
37 this->vertex = neighbour_vertex;
41 Edge(std::string neighbour_vertex, T weight) {
42 this->vertex = neighbour_vertex;
43 this->weight = weight;
46 bool operator<(
const Edge& obj)
const {
47 return obj.vertex > vertex;
50 bool operator==(
const Edge& obj)
const {
51 return obj.vertex == vertex;