/***************************************** * Instructions * - Replace 'uwuserid' with your uWaterloo User ID * - Select the current calendar term and enter the year * - List students with whom you had discussions and who helped you * * uWaterloo User ID: uwuserid @uwaterloo.ca * Submitted for ECE 250 * Department of Electrical and Computer Engineering * University of Waterloo * Calender Term of Submission: (Winter|Spring|Fall) 201N * * By submitting this file, I affirm that * I am the author of all modifications to * the provided code. * * The following is a list of uWaterloo User IDs of those students * I had discussions with in preparing this project: * - * * The following is a list of uWaterloo User IDs of those students * who helped me with this project (describe their help; e.g., debugging): * - *****************************************/ #ifndef WEIGHTED_GRAPH_H #define WEIGHTED_GRAPH_H #ifndef nullptr #define nullptr 0 #endif #include #include #include "Exception.h" class Weighted_graph { private: static const double INF; // Do not implement these functions! // By making these private and not implementing them, any attempt // to make copies or assignments will result in errors Weighted_graph( Weighted_graph const & ); Weighted_graph &operator=( Weighted_graph ); // your choice public: Weighted_graph( int = 10 ); ~Weighted_graph(); int degree( int ) const; int edge_count() const; std::pair minimum_spanning_tree() const; bool insert_edge( int, int, double ); bool erase_edge( int, int ); void clear_edges(); // Friends friend std::ostream &operator<<( std::ostream &, Weighted_graph const & ); }; const double Weighted_graph::INF = std::numeric_limits::infinity(); Weighted_graph::Weighted_graph( int n ) { } Weighted_graph::~Weighted_graph() { } bool Weighted_graph::insert_edge( int i, int j, double d ) { return false; } std::pair Weighted_graph::minimum_spanning_tree() const { return std::pair( 0.0, 0 ); } std::ostream &operator<<( std::ostream &out, Weighted_graph const &graph ) { // Your implementation return out; } #endif