#include "tovert.h" tovert::tovert(const int v, const double w) : to(v), weight(w) {} tovert::tovert(const tovert& e) : to(e.to), weight(e.weight) {} tovert& tovert::operator=(const tovert& e) { to = e.to; weight = e.weight; return *this; } bool tovert::operator==(const tovert& e) const { return to==e.to && weight==e.weight; } bool tovert::operator!=(const tovert& e) const { return to!=e.to || weight!=e.weight; }