📄 unweightededge.h
字号:
// edge in an unweighted graph
#ifndef unweightedEdge_
#define unweightedEdge_
#include "edge.h"
#include "myExceptions.h"
using namespace std;
class unweightedEdge : public edge<bool>
{
public:
unweightedEdge(int theV1, int theV2)
{v1 = theV1; v2 = theV2;}
~unweightedEdge() {};
int vertex1() const {return v1;}
int vertex2() const {return v2;}
bool weight() const {throw undefinedMethod("weight");}
private:
int v1,
v2;
};
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -